The Code Editor 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, correspond with teachers and share their program.
From a teacher view you can go to the Code Editor to check student code, view solutions, view help documents, code history, download programs and view grades.
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, and allows you to revert a program to any previously saved version. It is accessible on any exercise page under the "More" tab in the top right corner.
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
Students can view their grades directly from the Grade Tab. As a teacher you can also award credit to students from the Grade Tab.
Change Font Size:
You can change the font size in the code editor to make sure it shows the right size for you. First click the settings icon on any editor page. Then on the next screen you can click the + or - button to change the font size that shows up in the editor and click done. That's it!
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 right away, you will have a link to send to others for them to run your program.
An option on the Share Tab is whether the share link is “Active.” If you change you mind about sharing your program and don’t want other people to be able to visit the share link, you can toggle the “Active” switch to Off. As the author, you will still be able to view that shared program page, but no one else can.
Still have questions? Contact our team at email@example.com to learn more!