Skip to content

Visual Studio Code keyboard shortcuts ​

EspDesktop touchscreen on a desk stand beside a Mac keyboard

EspDesktop puts Visual Studio Code keyboard shortcuts on labelled buttons on a touchscreen beside your Mac. Keep those commands within reach while finding files and running editing commands in Visual Studio Code.

What can I do with it? ​

Try Quick Open in a workspace, then type a file name. Keep Save All close by if you tend to edit several files at once.

Back to layout
Command Palette
Quick Open
Save All
Search
Show integrated terminal
Toggle Line Comment
Format document
Split editor
Example touchscreen buttons for Visual Studio Code

Visual Studio Code shortcut reference ​

ActionKeys
Command PaletteCommand + Shift + P
Quick OpenCommand + P
New WindowCommand + Shift + N
Cursor UndoCommand + U
Open FileCommand + O
SaveCommand + S
Save AsCommand + Shift + S
Save AllCommand + Option + S
SearchCommand + Shift + F
Search DetailsCommand + Shift + J
Show Command PaletteF1
Quick Open, Go to File…Command + P
Close window/instanceCommand + W
User SettingsCommand + ,
Keyboard ShortcutsCommand + K then Command + S
Cut line (empty selection)Command + X
Copy line (empty selection)Command + C
Move line downOption + Down
Move line upOption + Up
Copy line downOption + Shift + Down
Copy line upOption + Shift + Up
Delete lineCommand + Shift + K
Insert line below/aboveCommand + Enter
Insert line below/aboveCommand + Shift + Enter
Jump to matching bracketCommand + Shift + \
Indent/outdent lineCommand + ]
Indent/outdent lineCommand + [
Beginning of lineHome
End of lineEnd
Beginning of fileCommand + Up
End of fileCommand + Down
Scroll line upControl + Pageup
Scroll line downControl + Pagedown
Scroll page upCommand + Pageup
Scroll page downCommand + Pagedown
Fold/unfold regionCommand + Option + [
Fold/unfold regionCommand + Option + ]
Fold/unfold all subregionsCommand + K then Command + [
Fold/unfold all subregionsCommand + K then Command + ]
Fold/unfold all regionsCommand + K then Command + 0
Fold/unfold all regionsCommand + K then Command + J
Add line commentCommand + K then Command + C
Remove line commentCommand + K then Command + U
Toggle block commentOption + Shift + A
Toggle word wrapOption + Z
Insert cursor aboveCommand + Option + Up
Insert cursor belowCommand + Option + Down
Insert cursor at end of each line selectedOption + Shift + I
Select lineCommand + L
Select all occurrencesCommand + Shift + L
Select all occurrences of wordCommand + F2
Expand / shrink selection RightCommand + Control + Shift + Right
Expand / shrink selection LeftCommand + Control + Shift + Left
Column (box) selection upCommand + Option + Shift + Up
Column (box) selection downCommand + Option + Shift + Down
Column (box) selection leftCommand + Option + Shift + Left
Column (box) selection rightCommand + Option + Shift + Right
Column (box) selection page upCommand + Option + Shift + Pageup
Column (box) selection page downCommand + Option + Shift + Pagedown
FindCommand + F
ReplaceCommand + Option + F
Find nextCommand + G
Find nextCommand + Shift + G
Select all occurrences of Find matchOption + Enter
Add selection to next Find matchCommand + D
Move last selection to next Find matchCommand + K then Command + D
Trigger suggestionControl + Space
Trigger suggestionCommand + I
Trigger parameter hintsCommand + Shift + Space
Format documentOption + Shift + F
Format selectionCommand + K then Command + F
DefinitionF12
Peek DefinitionOption + F12
Open Definition to sideCommand + K then F12
Quick FixCommand + .
Show ReferencesShift + F12
Rename SymbolF2
Trim trailing whitespaceCommand + K then Command + X
Change file languageCommand + K then M
Show all SymbolsCommand + T
LineControl + G
FileCommand + P
SymbolCommand + Shift + O
Show Problems panelCommand + Shift + M
Next error or warningF8
Next error or warningShift + F8
Navigate editor group historyControl + Shift + Tab
Go forwardControl + -
Go forwardControl + Shift + -
Toggle Tab moves focusControl + Shift + M
Close editorCommand + W
Close folderCommand + K then F
Split editorCommand + \
Focus into 1 editor group 1Command + 1
Focus into 2 editor group 2Command + 2
Focus into 3 editor group 3Command + 3
Focus into previous editor groupCommand + K then Command + Left
Focus into next editor groupCommand + K then Command + Right
Move editor leftCommand + K then Command + Shift + Left
Move editor rightCommand + K then Command + Shift + Right
Move active editor group LeftCommand + K then Left
Move active editor group RightCommand + K then Right
New FileCommand + N
CloseCommand + W
Close AllCommand + K then Command + W
Reopen closed editorCommand + Shift + T
Keep preview mode editor openCommand + K then Enter
Open nextControl + Tab
Open previousControl + Shift + Tab
Copy path of fileCommand + K then P
Reveal file in FinderCommand + K then R
Show file in new window/instanceCommand + K then O
Toggle full screenCommand + Control + F
Toggle editor layout (horizontal/vertical)Command + Option + 0
ZoomCommand + =
Zoom outCommand + Shift + -
Toggle Sidebar visibilityCommand + B
Show Explorer / Toggle focusCommand + Shift + E
Show Source ControlControl + Shift + G
Show DebugCommand + Shift + D
Show ExtensionsCommand + Shift + X
Replace in filesCommand + Shift + H
Show Output panelCommand + Shift + U
Open Markdown previewCommand + Shift + V
Open Markdown preview to sideCommand + K then V
Zen Mode (Esc Esc to exit)Command + K then Z
Toggle breakpointF9
Start/ContinueF5
Step into/ outF11
Step into/ outShift + F11
Step overF10
StopShift + F5
Show hoverCommand + K then Command + I
Show integrated terminalControl + `
Create new terminalControl + Shift + `
Copy selectionCommand + C
Scroll upCommand + Up
Scroll downCommand + Down
Scroll page upPageup
Scroll page downPagedown
Scroll to top/bottomCommand + Home
Scroll to top/bottomEnd
Toggle Line CommentCommand + /

Visual Studio Code shortcuts FAQ ​

Which Visual Studio Code keyboard shortcuts should I try first?

Start with Command Palette (Command + Shift + P), Quick Open (Command + P) and Save All (Command + Option + S). Tapping a button sends its key combination to Visual Studio Code on your Mac.

How do I add Visual Studio Code shortcuts to EspDesktop?

Add an Applications card for Visual Studio Code and choose the shortcuts you want under App Subpage. For one button, use a Key Shortcut card and pick Visual Studio Code in the Application tab. See how to add shortcut cards.

Can I choose which Visual Studio Code shortcuts appear on the display?

Yes. You can choose and reorder cards in the app subpage. You can also add a custom keyboard shortcut for a key combination you use in Visual Studio Code.

Why is a Visual Studio Code shortcut not responding?

Try the keys shown in the table on your Mac first, with Visual Studio Code open and the right window or item selected. If the keys work on your Mac, check EspDesktop’s Accessibility permission.

Browse all application shortcuts.

Buy me a coffee