Skip to main content

Keyboard shortcuts

Every command can have keys, and you can change them all. This page lists the default bindings and shows how to change them. The keys the editor handles itself, such as moving by words, are on The editor.

On macOS, the defaults use Cmd where this page says Ctrl.

File​

CommandKeys
New FileCtrlN
New Project...CtrlShiftN
Open File...CtrlO
Open Folder...CtrlShiftO
SaveCtrlS
Save As...CtrlShiftS
Save AllCtrlAltS
Close EditorCtrlW or CtrlF4
Close Folder
SettingsCtrl,
ExitCtrlQ

Edit​

CommandKeys
UndoCtrlZ
RedoCtrlY or CtrlShiftZ
CutCtrlX
CopyCtrlC
PasteCtrlV
FindCtrlF
ReplaceCtrlH
Find NextF3
Find PreviousShiftF3
Find in FilesCtrlShiftF
Toggle Line CommentCtrl/
Show Code ActionsAltEnter
Rename SymbolF2
Format DocumentShiftAltF
Format Selection
Rollback LinesCtrlAltZ

Selection​

CommandKeys
Select AllCtrlA
Move Line UpAlt↑
Move Line DownAlt↓
Duplicate LineShiftAlt↓
Delete LineCtrlShiftK
IndentTab in the editor
OutdentShiftTab in the editor

View​

CommandKeys
Command PaletteCtrlK, CtrlShiftP or F1
Show ExplorerCtrlShiftE
Show Search
Show ProblemsCtrlShiftM
Show OutputCtrlShiftU
Toggle Light and Dark ThemeCtrlShiftT
Zoom InCtrl= or CtrlShift=
Zoom OutCtrl-
Reset ZoomCtrl0
Reset Layout

Go​

CommandKeys
Search EverywhereShift twice, or CtrlShiftA
Go to File...CtrlP
Go to Line...CtrlG
Go to DefinitionF12
BackAlt←
ForwardAlt→
Next ChangeF7
Previous ChangeShiftF7
Show Changes

Run​

CommandKeys
RunShiftF10
DebugShiftF9
StopCtrlF2
Edit Configurations...

Git​

CommandKeys
Commit...CtrlAltK
Push...CtrlAltShiftK
Pull...CtrlT
Fetch, New Branch..., Branches..., Show History, Show File History, Show Diff
Roll Back..., Add to .gitignore, Stash Changes..., Unstash Changes..., Initialize Repository

In the Commit window's message box, CtrlEnter commits and CtrlShiftEnter commits and pushes.

Editor, build and help​

CommandKeys
Trigger SuggestionsCtrlSpace
Show Parameter HintsCtrlShiftSpace
BuildCtrlShiftB
Cancel BuildCtrlBreak
Welcome, Keyboard Shortcuts, Documentation, About Runesmith
Restart Language Servers, Show Language Server Output

Commands without keys run from the menus or the command palette.

Change a binding​

  1. Choose Help › Keyboard Shortcuts. The page lists every command by category, with its id and its keys; the search box finds commands by name, id or key.
  2. Click the keys of a command, or Add a binding when it has none.
  3. Type the keys, such as Ctrl+Alt+Down, and press Enter. Separate several with |. Leave the box empty to remove the binding.

Write modifiers first, then one key: Ctrl, Shift, Alt (or Option) and Cmd (or Meta), and keys such as A, F5, Enter, Space, Up, PageDown, /, = or ,.

keybindings.json​

Your bindings are saved in keybindings.json, next to your settings.json. It is a JSON object of command ids and keys; an empty value removes a command's default binding:

keybindings.json
{
"edit.toggleComment": "Ctrl+Shift+7",
"view.commandPalette": "Ctrl+Shift+P | F1",
"file.exit": ""
}

Runesmith reads the file when it starts. The ids are on the Keyboard Shortcuts page beside each command.

Keys in text boxes​

While a text box has the focus, such as the find bar's, keys without Ctrl, Alt or Cmd type into the box; function keys still run their commands. Undo, redo, cut, copy, paste and select all work on the text box or editor that has the focus.