JavaScript IDE Help

This editor is designed to stay simple. Write code in the editor, run it in the shell, and use the tools only when they help you move faster.

Getting Started

  • Write JavaScript in the editor pane.
  • Select Run to execute your code in the shell.
  • Use Save to download your file and Load to open a saved file.
  • Use Reset Example to restore the sample program.

Editor Basics

  • Undo and Redo step backward and forward through edits.
  • Format cleans up your code using the built-in formatter.
  • Clear removes all code from the editor.
  • Press Enter to start a new line. The editor carries forward the current indentation.
  • Press Tab to indent and Shift+Tab to outdent.
  • Use the # button to show or hide line numbers.

Find and Replace

  • Press Ctrl+F to open Find.
  • Press Ctrl+H to open Replace.
  • Use Enter in the Find box for the next match.
  • Use Shift+Enter in the Find box for the previous match.
  • Use Enter in the Replace box to replace the current match.
  • Use Ctrl+Alt+Enter in the Replace box to replace all matches.
  • The match count appears under the Find and Replace controls.

Commenting and Indentation

  • Use Ctrl+/ to toggle line comments for the current line or selected lines.
  • Comments are added before the first non-space character, so indentation stays intact.
  • Use Ctrl+[ to outdent selected lines.
  • Use Ctrl+] to indent selected lines.

Running Code

  • The shell shows console.log(), console.error(), and other console output.
  • prompt() and alert() are supported.
  • Use Reset in the shell to clear variables and start fresh.
  • Use Clear in the shell to clear the console output only.

Keyboard Shortcuts

Ctrl+FFind
Ctrl+HReplace
Ctrl+ZUndo
Ctrl+YRedo
Ctrl+Shift+ZRedo
Ctrl+Shift+KDelete line
Ctrl+/Toggle comment
Ctrl+[Outdent selection
Ctrl+]Indent selection
TabIndent
Shift+TabOutdent
Shift+Ctrl+FFormat code
EscapeClose Find/Replace

Tips

  • Keep programs small while testing. Run often.
  • If output looks strange, reset the shell and run again.
  • Save your work before trying large formatting or replace-all changes.