Source editing

Use File to manage source tabs and Edit to work in the focused source view. Choose a command for the current selection, or use the line and navigation commands at the caret.

The Edit menu provides column selection, text transformation, go-to-line, display, and split-view commands. Commands act on the focused source view.

Edit menu with numbered controls for text editing, column selection, navigation, and editor views

Mark Explanation
1 Reindent. Reindent source using the compiler’s block markers.
2 Column Selection Mode. Toggle rectangular selection in the active view.
3 Go to line…. Move the caret to a source position.
4 Indentation…. Set Tab size and choose tabs or spaces.
5 Token colors…. Set syntax highlighting colors.
6 Soft wrap. Wrap long lines in the focused view.
7 Split view. Open a second view.

Files and tabs

The editor opens with an untitled tab. File → New creates a tab. File → Open opens a file or selects its existing tab. Click × beside any tab’s name to close that file. Use File → Close tab to close the active file. An asterisk marks unsaved changes. Closing a modified tab offers save, discard, or cancel. Closing the last file leaves a fresh untitled tab.

Save, Save As, and compilation use the focused source view. In a split, click the view you want to work on first. Save other modified files before compiling a source that includes them. Ctrl-click a compiler-identified include path to open it in a tab; save the containing file first so relative paths can be resolved.

The editor uses JetBrains Mono NL. The toolbar’s Font zoom control and Ctrl+mouse wheel change the active view’s font size; Ctrl++ and Ctrl+- also zoom. Line numbers and compiler-provided syntax highlighting help identify source positions. Undo/redo and cut/copy/paste are available in Edit and the toolbar; Edit → Select All selects the entire document.

Multiple selections and columns

Hold Alt and click to add carets. Typing, deletion, cut, and paste act on all selections in one undo step. Arrow keys move all carets. Escape clears additional selections. Copy joins selections with newlines. When the clipboard has one row per selection, paste inserts the corresponding row into each selection. Otherwise, paste inserts the full clipboard text into each selection.

Choose Edit → Column Selection Mode to toggle the mode in the active editor view. While the menu item is checked, drag or use Shift+arrow keys to create and extend a rectangle. Toggle the mode off to return to regular selection. For a single rectangular selection, hold Alt+Shift and drag. Typing into a column selection pads short lines to the selected column.

Find and replace

Use the inline search bar to find or replace text in the active source view. See Find and replace for controls, selection scope, and regular expression examples.

Text and indentation

Edit → Toggle comment uses the active syntax’s comment delimiter. In Edit → Indentation…, set Tab size and choose whether to insert tabs or spaces. Edit → Reindent uses block markers supplied by the compiler.

Choose Edit → Go to line… and enter line:column, with both numbers starting at 1.

Display and splits

Use Edit → Soft wrap to wrap long lines. Choose Edit → Token colors…, select a token type on the left, and pick its color on the right. Choose OK to save changes to all edited types or Cancel to discard them.

The virtual computer’s compiler provides syntax highlighting and comment delimiters. Display and indentation preferences are saved in application settings.

Edit → Split view → Split current file opens two views of one document; edits appear in both. Split with another file… places two open files side by side. Close split restores the tab views. File operations use the focused source view. Closing a file or opening another file also restores the tab views.

Two views of hello-world-8080.asm in the split source editor

Keyboard shortcuts

Action Linux and Windows macOS
Close active file Ctrl+F4 Cmd+W
Show inline Find / Replace Ctrl+F / Ctrl+R Cmd+F / Cmd+R
Next / previous match F3 / Shift+F3 F3 / Shift+F3
Redo Ctrl+Shift+Z Cmd+Shift+Z
Delete current line Ctrl+Y Cmd+Backspace
Toggle comment Ctrl+/ or Ctrl+NumPad / Cmd+/
Toggle Column Selection Mode Alt+Shift+Insert Cmd+Shift+8
Go to line / column Ctrl+G Cmd+L

Hold Alt (Option on macOS) and click to add a caret, or hold Alt+Shift and drag to select a rectangle. Press Escape to clear additional carets and marked occurrences. Use Ctrl+mouse wheel, Ctrl++, or Ctrl+- to change the font size.


This site uses Just the Docs, a documentation theme for Jekyll.