The Code Editor, or IDE (Integrated Development Environment), is where students will go to write their programs! Students can write code, run code, check code, reset their code, change font size, view assignment details, access help documents, download code, view code history, view grade, correspond with teachers and share their program. From a teacher view you can do everything students can do, as well as view solutions, and check and grade student work!
View Documents in Code Editor
If you are on any editor page on CodeHS, we provide a handy "Docs" tab to give you a quick reference to information you may need to finish your program. To find the docs, just click the "Docs" tab on the right side of the screen.
View Code History
The Code History tab is a way for teachers and students to see all of the changes and revisions that have been made to a certain program with a timestamp, and allows you to revert a program to any previously saved version. It is accessible on any exercise page under the More > History tabs in the top right corner. You can use arrows to quickly move back and forth between timestamps of code.
The History tab is a great tool to aid in cheat detection, as teachers can assume that exercises (particularly more complex exercises) that are solved in very few code runs/saves are often attributable to borrowed or copied code.
Actions that cause an entry to be created in the History tab
Student runs code
Student clicks save
Student pastes text in the editor
It's been a minute and none of things have happened but the code has changed
Teacher edits code and Pushes changes to student program
View Grades
Students can view their grade for an assignment directly from the Grade Tab. As a teacher you can also award credit to students from the Grade Tab. See Grading Single Assignments for more info.
Print Your Code
You can print your code by clicking More > Print. After you click the blue Print button, a new page will open up, nicely formatted for printing and pop up a dialog to print it out.
Share Your Program
You can share your program by clicking More > Share. You can then click the “Create Share Link” button, and instantly have a link to send to others for them to run your program.
In the Share Tab, you can choose whether the share link is “Public.” If you change your mind about sharing your program and don’t want other people to be able to visit the share link, you can toggle the “Public” switch to Off. As the author, you will still be able to view that shared program page, but no one else can.
Editor Settings
Students can change their default Code Editor settings. Access the settings by clicking the gear icon in the upper left corner of any editor.
Editor Font: adjusts the font size of the student's code
Console Font: adjusts the font size of the console on the right
Editor: adjust between using the Ace and Monaco editor engine. See Using Monaco in the Code Editor for more information.
Editor Theme: change the color scheme of the Code Editor to a higher contrast theme, such as Terminal or Monokai
Console Theme: change the output console to Light or Dark Mode
Autocomplete: automatically adds closing brackets while typing code. See Using Autocomplete and Auto-format for more info.
Blocks/Text Settings: toggle block coding
Wrap Lines: separates lines of code so that they are fully visible within the editor window
Show File Tab Bar: switch between files easily using the File Tab Bar. Read more about the Bar here.
Program Specific Editor Settings
Auto-Format: automatically format code in Javascript programs. See Using Autocomplete and Auto-format for more info.
Code Running Environment:
Enable the URL Bar in HTML programs. See Using the URL Bar for more info.
Switch from running Brython (3.9.0) to Brython (3.11.0) in Brython Graphics programs.
Debug Mode: step debugging is available in Python3 and Java(main) programs
Stopify- enable Stopify in Javascript(console) programs. Check out Using Stopify for more info.
Display Settings
Use the blue Layout menu in the bottom left hand corner to configure the layout of your Code Editor. You can hide the left navigation panel, graphics output, test output and code windows. You can enter fullscreen code, fullscreen graphics code, or fullscreen test output windows.
Managing Files
Some program types allow you to use create and use multiple files in your program. Read more about managing multi-file programs here.
Navigating Assignments in the Code Editor
Use the bottom navigation bar in the Code Editor to navigate to other assignments in your current Module or to return home to your Assignments page.
Use the home icon to return to your Assignments page for this course
Click the Module name to view all of the Lessons and Activities in the current Module
Expand a Lesson to view and navigate to an assignment.
New IDE Features Demo
Code Editor Settings Video Demo
View the Using the IDE CodeHS Webinar to learn more.
Still have questions? Contact our team at hello@codehs.com to learn more!