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.
- 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. - Select a command.
- Click Set… (or Change…), then press the new keys. Esc cancels.
- 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:
| Chord | Command |
|---|---|
| Ctrl+K S | Save All |
| Ctrl+K W | Close All |
| Ctrl+K R | Open Containing Folder |
| Ctrl+K Z | Distraction-free mode |
| Ctrl+K V | Markdown Preview |
| Ctrl+K Ctrl+S | Shortcut Mapper |
| Ctrl+K Ctrl+O | Open Folder as Workspace |
| Ctrl+K Ctrl+0 | Fold All |
| Ctrl+K Ctrl+J | Unfold 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.
| Command | Ettin | VS Code style |
|---|---|---|
| Save As… | Ctrl+Alt+S | Ctrl+Shift+S |
| Save All | Ctrl+Shift+S | Ctrl+Alt+S |
| Command Palette… | F1 | Ctrl+Shift+P, F1 |
| Play Macro | Ctrl+Shift+P | none |
| Tab List… | none | Ctrl+P |
| Print… | Ctrl+P | none |
| Delete Line | Ctrl+Shift+L | Ctrl+Shift+K |
| Select All Occurrences | Alt+F3 | Ctrl+Shift+L |
| Select Next Occurrence | Ctrl+Shift+D | Ctrl+D |
| Duplicate | Ctrl+D | Alt+Shift+Down |
| Move Lines Up / Down | Ctrl+Shift+Up / Ctrl+Shift+Down | Alt+Up / Alt+Down |
| Toggle Line Comment | Ctrl+Q | Ctrl+/ |
| Toggle Block Comment | Ctrl+Shift+Q | Alt+Shift+A |
| Insert Blank Line Below / Above | Ctrl+Alt+Shift+Enter / Ctrl+Alt+Enter | Ctrl+Enter / Ctrl+Shift+Enter |
| Fold / Unfold Current Level | Ctrl+Alt+F / Ctrl+Alt+Shift+F | Ctrl+Shift+[ / Ctrl+Shift+] |
| Markdown Preview | Ctrl+Shift+M | Ctrl+Shift+V |
| Folder Panel | none | Ctrl+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
| Command | Shortcut |
|---|---|
| New | Ctrl+N |
| Open… | Ctrl+O |
| Save | Ctrl+S |
| Save As… | Ctrl+Alt+S |
| Save All | Ctrl+Shift+S |
| Print… | Ctrl+P |
| Close | Ctrl+W |
| Close All | Ctrl+Shift+W |
Edit
| Command | Shortcut |
|---|---|
| Undo | Ctrl+Z |
| Redo | Ctrl+Y |
| Cut | Ctrl+X |
| Copy | Ctrl+C |
| Paste | Ctrl+V |
| Select All | Ctrl+A |
| Line Operations > Duplicate | Ctrl+D |
| Line Operations > Delete Lines | Ctrl+Shift+L |
| Line Operations > Move Up | Ctrl+Shift+Up |
| Line Operations > Move Down | Ctrl+Shift+Down |
| Line Operations > Join Lines | Ctrl+J |
| Line Operations > Split Lines at Long-Line Column | Ctrl+I |
| Line Operations > Insert Blank Line Above | Ctrl+Alt+Enter |
| Line Operations > Insert Blank Line Below | Ctrl+Alt+Shift+Enter |
| Comment > Toggle Line Comment | Ctrl+Q |
| Comment > Toggle Block Comment | Ctrl+Shift+Q |
| Insert > Date and Time (Short) | F5 |
| Insert > Date and Time (Long) | Shift+F5 |
| Multi-Select > Select Next Occurrence | Ctrl+Shift+D |
| Multi-Select > Select All Occurrences | Alt+F3 |
| Auto-Completion > Complete Word | Ctrl+Space |
| Auto-Completion > Show Parameter Hint | Ctrl+Shift+Space |
| Column Editor… | Alt+C |
| Column Mode | Alt+Shift+C |
Search
| Command | Shortcut |
|---|---|
| Find… | Ctrl+F |
| Replace… | Ctrl+H |
| Find Next | F3 |
| Find Previous | Shift+F3 |
| Find Selected Next | Ctrl+F3 |
| Find Selected Previous | Ctrl+Shift+F3 |
| Find in Files… | Ctrl+Shift+F |
| Go to Line… | Ctrl+G |
| Bookmark > Toggle Bookmark | Ctrl+F2 |
| Bookmark > Next Bookmark | F2 |
| Bookmark > Previous Bookmark | Shift+F2 |
View
| Command | Shortcut |
|---|---|
| Word Wrap | Alt+Z |
| Distraction-Free Mode | F11 |
| Command Palette… | F1 |
| Collapse Toolbar | Ctrl+F1 |
| Menu Bar (show or hide) | Ctrl+M |
| Next Tab | Ctrl+Tab or Ctrl+PageDown |
| Previous Tab | Ctrl+Shift+Tab or Ctrl+PageUp |
| Focus Other View | F8 |
| Hex View | Ctrl+Alt+Shift+H |
| Markdown Preview | Ctrl+Shift+M |
| Folding > Fold All | Alt+0 |
| Folding > Unfold All | Alt+Shift+0 |
| Folding > Fold Current Level | Ctrl+Alt+F |
| Folding > Unfold Current Level | Ctrl+Alt+Shift+F |
| Folding > Fold Level 1 … 5 | Alt+1, Alt+2, Alt+3, Alt+4, Alt+5 |
| Zoom In | Ctrl++ or Ctrl+= |
| Zoom Out | Ctrl+- |
| Reset Zoom | Ctrl+0 |
Transform
| Command | Shortcut |
|---|---|
| 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 Text | Ctrl+Alt+T |
| Macros > Start or Stop Recording | Ctrl+Shift+R |
| Macros > Playback | Ctrl+Shift+P |
| Convert Case To > UPPERCASE | Ctrl+Shift+U |
| Convert Case To > lowercase | Ctrl+U |
| Convert Case To > Title Case | Alt+U |
| Convert Case To > Sentence case | Ctrl+Alt+U |
| Convert Case To > iNVERT cASE | Ctrl+Alt+Shift+U |
| JSON and XML > Format JSON | Ctrl+Alt+M |
| JSON and XML > Minify JSON | Ctrl+Alt+N |
| JSON and XML > Format XML | Ctrl+Alt+Shift+B |
| JSON and XML > Linearize | Ctrl+Alt+Shift+L |
Settings
| Command | Shortcut |
|---|---|
| Preferences… | Ctrl+, |
Tools
| Command | Shortcut |
|---|---|
| Compare > Compare with Previous Tab / the Two Views | Ctrl+Alt+D |
| Compare > Next Difference | F7 |
| Compare > Previous Difference | Shift+F7 |
| CsvQuery > CsvQuery Panel | Ctrl+Alt+Q |
| CsvQuery > Run Query (in the panel) | Ctrl+Enter |
| JSON Tree | Ctrl+Alt+J |
| Check XML Syntax | Ctrl+Alt+Shift+M |
| XPath Panel | Ctrl+Alt+Shift+E |
| Copy Current XPath | Ctrl+Alt+Shift+P |
Help
| Command | Shortcut |
|---|---|
| User Manual | Shift+F1 |
In the editor
These aren't commands, so they're not in the Shortcut Mapper:
| Keys | What they do |
|---|---|
| Ctrl+click, Alt+click | Add a caret |
| Ctrl+drag | Add a selection |
| Alt+drag, Alt+Shift+arrows | Column selection (a plain drag and Shift+arrows in Column Mode) |
| Ctrl+Alt+Up, Ctrl+Alt+Down | Add a caret above or below |
| Esc | Back to one caret; close the completion list, a parameter hint or the find bar |
| Home | First non-blank character, then the start of the line |
| Ctrl+Left, Ctrl+Right | Move by words |
| Ctrl+Backspace, Ctrl+Delete | Delete by words |
| Tab, Shift+Tab | Indent or outdent the selected lines |
| Middle-click on a tab | Close it |