Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Keyboard shortcuts

Every command in Ettin Edit can have a keyboard shortcut, and you can change any of them. This page lists the defaults; the menus and the command palette always show the ones in use.

Changing shortcuts

Settings > Shortcut Mapper… lists every command, every saved macro and every plugin command, with their shortcuts.

  1. Type in Find to narrow the list, by the command's name or by a shortcut such as ctrl+d. Tick Only commands with a shortcut to hide the rest.
  2. Select a command.
  3. Click Set… (or Change…), then press the new keys. Esc cancels.
  4. If another command already uses those keys, Ettin Edit tells you which one. Move It Here takes the shortcut from the other command; Cancel leaves things as they were.

A command can have more than one shortcut: Add Another… adds one, Remove removes the selected one, and Reset to Default puts the command's original shortcut back. Reset All Shortcuts resets every command.

Every change is saved as you make it. Undo Changes at the bottom puts the keymap and every shortcut back as they were when you opened the window.

Two-key chords

A chord is two keys pressed one after the other, like VS Code's Ctrl+K S: press Ctrl+K, let go, then press S. After the first key a note at the bottom of the window says Ettin Edit is waiting for the second; Esc cancels. The second key can be a plain letter or have Ctrl or Alt too.

To give a command a chord, select it and click Add Chord…, then press the first key and the second. A key that starts a chord can't also be a shortcut on its own, and Ettin Edit says so if you try. Remove removes the selected command's shortcuts and chords. In settings.json a chord is written with a space between the keys: "Ctrl+K S".

Both keymaps come with these chords, so they work whichever you pick:

ChordCommand
Ctrl+K SSave All
Ctrl+K WClose All
Ctrl+K ROpen Containing Folder
Ctrl+K ZDistraction-free mode
Ctrl+K VMarkdown Preview
Ctrl+K Ctrl+SShortcut Mapper
Ctrl+K Ctrl+OOpen Folder as Workspace
Ctrl+K Ctrl+0Fold All
Ctrl+K Ctrl+JUnfold All
Ctrl+K Ctrl+[ / Ctrl+]Fold / Unfold Current Level

Ctrl+K on its own has no command in either keymap, so nothing is lost.

Right-click a command and choose Copy Command ID to copy the id a plugin uses to run it.

Rules for shortcuts:

  • They need Ctrl or Alt, unless they use a function key (F1 to F12), so plain typing is never taken over.
  • Ctrl+C, Ctrl+X and Ctrl+V are kept for copy, cut and paste.
  • Undo, redo, cut, copy, paste, select all and completion are handled by the editor itself and can't be changed.

Your shortcuts are saved in settings.json in the settings folder, so they move with your settings.

Keymaps

Keymap at the top of the Shortcut Mapper (also in Preferences) picks the set of shortcuts you start from:

  • Ettin (Notepad++ style): the default, listed under Default shortcuts below. If you know Notepad++, these are the keys you expect.
  • VS Code style: the keys below change to the ones VS Code uses; every other command keeps its Ettin key.

Shortcuts you set yourself stay on top of whichever keymap you pick, so switching doesn't lose them.

CommandEttinVS Code style
Save As…Ctrl+Alt+SCtrl+Shift+S
Save AllCtrl+Shift+SCtrl+Alt+S
Command Palette…F1Ctrl+Shift+P, F1
Play MacroCtrl+Shift+Pnone
Tab List…noneCtrl+P
Print…Ctrl+Pnone
Delete LineCtrl+Shift+LCtrl+Shift+K
Select All OccurrencesAlt+F3Ctrl+Shift+L
Select Next OccurrenceCtrl+Shift+DCtrl+D
DuplicateCtrl+DAlt+Shift+Down
Move Lines Up / DownCtrl+Shift+Up / Ctrl+Shift+DownAlt+Up / Alt+Down
Toggle Line CommentCtrl+QCtrl+/
Toggle Block CommentCtrl+Shift+QAlt+Shift+A
Insert Blank Line Below / AboveCtrl+Alt+Shift+Enter / Ctrl+Alt+EnterCtrl+Enter / Ctrl+Shift+Enter
Fold / Unfold Current LevelCtrl+Alt+F / Ctrl+Alt+Shift+FCtrl+Shift+[ / Ctrl+Shift+]
Markdown PreviewCtrl+Shift+MCtrl+Shift+V
Folder PanelnoneCtrl+B

VS Code style also keeps Ctrl+Alt+S for Save All, next to the Ctrl+K S chord both keymaps have (Two-key chords).

Default shortcuts

On macOS-style keyboards, Ctrl is still Ctrl; Ettin Edit runs on Linux and Windows only.

File

CommandShortcut
NewCtrl+N
Open…Ctrl+O
SaveCtrl+S
Save As…Ctrl+Alt+S
Save AllCtrl+Shift+S
Print…Ctrl+P
CloseCtrl+W
Close AllCtrl+Shift+W

Edit

CommandShortcut
UndoCtrl+Z
RedoCtrl+Y
CutCtrl+X
CopyCtrl+C
PasteCtrl+V
Select AllCtrl+A
Line Operations > DuplicateCtrl+D
Line Operations > Delete LinesCtrl+Shift+L
Line Operations > Move UpCtrl+Shift+Up
Line Operations > Move DownCtrl+Shift+Down
Line Operations > Join LinesCtrl+J
Line Operations > Split Lines at Long-Line ColumnCtrl+I
Line Operations > Insert Blank Line AboveCtrl+Alt+Enter
Line Operations > Insert Blank Line BelowCtrl+Alt+Shift+Enter
Comment > Toggle Line CommentCtrl+Q
Comment > Toggle Block CommentCtrl+Shift+Q
Insert > Date and Time (Short)F5
Insert > Date and Time (Long)Shift+F5
Multi-Select > Select Next OccurrenceCtrl+Shift+D
Multi-Select > Select All OccurrencesAlt+F3
Auto-Completion > Complete WordCtrl+Space
Auto-Completion > Show Parameter HintCtrl+Shift+Space
Column Editor…Alt+C
Column ModeAlt+Shift+C
CommandShortcut
Find…Ctrl+F
Replace…Ctrl+H
Find NextF3
Find PreviousShift+F3
Find Selected NextCtrl+F3
Find Selected PreviousCtrl+Shift+F3
Find in Files…Ctrl+Shift+F
Go to Line…Ctrl+G
Bookmark > Toggle BookmarkCtrl+F2
Bookmark > Next BookmarkF2
Bookmark > Previous BookmarkShift+F2

View

CommandShortcut
Word WrapAlt+Z
Distraction-Free ModeF11
Command Palette…F1
Collapse ToolbarCtrl+F1
Menu Bar (show or hide)Ctrl+M
Next TabCtrl+Tab or Ctrl+PageDown
Previous TabCtrl+Shift+Tab or Ctrl+PageUp
Focus Other ViewF8
Hex ViewCtrl+Alt+Shift+H
Markdown PreviewCtrl+Shift+M
Folding > Fold AllAlt+0
Folding > Unfold AllAlt+Shift+0
Folding > Fold Current LevelCtrl+Alt+F
Folding > Unfold Current LevelCtrl+Alt+Shift+F
Folding > Fold Level 1 … 5Alt+1, Alt+2, Alt+3, Alt+4, Alt+5
Zoom InCtrl++ or Ctrl+=
Zoom OutCtrl+-
Reset ZoomCtrl+0

Transform

CommandShortcut
Recipes > Manage Recipes…Ctrl+Alt+R
Filter Through Command…Ctrl+Alt+P
Lines > Keep Matching Lines…Ctrl+Alt+K
Table > Show as Table / Show as TextCtrl+Alt+T
Macros > Start or Stop RecordingCtrl+Shift+R
Macros > PlaybackCtrl+Shift+P
Convert Case To > UPPERCASECtrl+Shift+U
Convert Case To > lowercaseCtrl+U
Convert Case To > Title CaseAlt+U
Convert Case To > Sentence caseCtrl+Alt+U
Convert Case To > iNVERT cASECtrl+Alt+Shift+U
JSON and XML > Format JSONCtrl+Alt+M
JSON and XML > Minify JSONCtrl+Alt+N
JSON and XML > Format XMLCtrl+Alt+Shift+B
JSON and XML > LinearizeCtrl+Alt+Shift+L

Settings

CommandShortcut
Preferences…Ctrl+,

Tools

CommandShortcut
Compare > Compare with Previous Tab / the Two ViewsCtrl+Alt+D
Compare > Next DifferenceF7
Compare > Previous DifferenceShift+F7
CsvQuery > CsvQuery PanelCtrl+Alt+Q
CsvQuery > Run Query (in the panel)Ctrl+Enter
JSON TreeCtrl+Alt+J
Check XML SyntaxCtrl+Alt+Shift+M
XPath PanelCtrl+Alt+Shift+E
Copy Current XPathCtrl+Alt+Shift+P

Help

CommandShortcut
User ManualShift+F1

In the editor

These aren't commands, so they're not in the Shortcut Mapper:

KeysWhat they do
Ctrl+click, Alt+clickAdd a caret
Ctrl+dragAdd a selection
Alt+drag, Alt+Shift+arrowsColumn selection (a plain drag and Shift+arrows in Column Mode)
Ctrl+Alt+Up, Ctrl+Alt+DownAdd a caret above or below
EscBack to one caret; close the completion list, a parameter hint or the find bar
HomeFirst non-blank character, then the start of the line
Ctrl+Left, Ctrl+RightMove by words
Ctrl+Backspace, Ctrl+DeleteDelete by words
Tab, Shift+TabIndent or outdent the selected lines
Middle-click on a tabClose it