Autocompleting in the Code Editor

Auto-complete in the code editor allows parentheses and braces to be autocompleted when typing in the code editor. You can activate this function in your Account Settings under the IDE menu on the left side. You can also choose to default to block view in the editor when possible.

GIF shows clicking top right menu in nav bar to go to Account Settings

Autoformatting in the Code Editor

Auto-Format is available in all CodeHS Javascript programs. The formatter, Prettier, makes sure that all code conforms to a consistent style. Learn more about Prettier here.

Once the Auto-Format setting is turned on, the program will automatically format the code each time students save the program. To enable Auto-Format, click the gear icon in the upper left corner to access the Editor Settings and toggle the Auto-Format control under Editor.

Still have questions? Contact our team at hello@codehs.com to learn more!

Did this answer your question?