Write and edit code

Get comfortable in the code editor — highlighting, tabs, and autocomplete.

  1. The code editor

    Your code sits in the editor, with syntax highlighting for colour, line numbers down the side, and indent guides that line up each block.

    The code editor with syntax highlighting, line numbers and indent guides.
  2. Tabs for open files

    Every file you open becomes a tab along the top, and a dot on a tab means it has unsaved changes. Tap the × to close a tab when you are done with it.

    The tab strip above the editor, one tab per open file, with an unsaved-changes dot.
  3. Autocomplete and snippets

    As you type, a list of suggestions appears — snippet abbreviations you have seen a teacher type, like sout, psvm and fori, plus common names like Scanner and println. Press Enter or Tab to accept the highlighted one.

    The autocomplete popup listing snippet abbreviations and API names as code is typed.