Visual Studio Code keyboard shortcuts

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.
Visual Studio Code shortcut reference
| Action | Keys |
|---|---|
| Command Palette | Command + Shift + P |
| Quick Open | Command + P |
| New Window | Command + Shift + N |
| Cursor Undo | Command + U |
| Open File | Command + O |
| Save | Command + S |
| Save As | Command + Shift + S |
| Save All | Command + Option + S |
| Search | Command + Shift + F |
| Search Details | Command + Shift + J |
| Show Command Palette | F1 |
| Quick Open, Go to File… | Command + P |
| Close window/instance | Command + W |
| User Settings | Command + , |
| Keyboard Shortcuts | Command + K then Command + S |
| Cut line (empty selection) | Command + X |
| Copy line (empty selection) | Command + C |
| Move line down | Option + Down |
| Move line up | Option + Up |
| Copy line down | Option + Shift + Down |
| Copy line up | Option + Shift + Up |
| Delete line | Command + Shift + K |
| Insert line below/above | Command + Enter |
| Insert line below/above | Command + Shift + Enter |
| Jump to matching bracket | Command + Shift + \ |
| Indent/outdent line | Command + ] |
| Indent/outdent line | Command + [ |
| Beginning of line | Home |
| End of line | End |
| Beginning of file | Command + Up |
| End of file | Command + Down |
| Scroll line up | Control + Pageup |
| Scroll line down | Control + Pagedown |
| Scroll page up | Command + Pageup |
| Scroll page down | Command + Pagedown |
| Fold/unfold region | Command + Option + [ |
| Fold/unfold region | Command + Option + ] |
| Fold/unfold all subregions | Command + K then Command + [ |
| Fold/unfold all subregions | Command + K then Command + ] |
| Fold/unfold all regions | Command + K then Command + 0 |
| Fold/unfold all regions | Command + K then Command + J |
| Add line comment | Command + K then Command + C |
| Remove line comment | Command + K then Command + U |
| Toggle block comment | Option + Shift + A |
| Toggle word wrap | Option + Z |
| Insert cursor above | Command + Option + Up |
| Insert cursor below | Command + Option + Down |
| Insert cursor at end of each line selected | Option + Shift + I |
| Select line | Command + L |
| Select all occurrences | Command + Shift + L |
| Select all occurrences of word | Command + F2 |
| Expand / shrink selection Right | Command + Control + Shift + Right |
| Expand / shrink selection Left | Command + Control + Shift + Left |
| Column (box) selection up | Command + Option + Shift + Up |
| Column (box) selection down | Command + Option + Shift + Down |
| Column (box) selection left | Command + Option + Shift + Left |
| Column (box) selection right | Command + Option + Shift + Right |
| Column (box) selection page up | Command + Option + Shift + Pageup |
| Column (box) selection page down | Command + Option + Shift + Pagedown |
| Find | Command + F |
| Replace | Command + Option + F |
| Find next | Command + G |
| Find next | Command + Shift + G |
| Select all occurrences of Find match | Option + Enter |
| Add selection to next Find match | Command + D |
| Move last selection to next Find match | Command + K then Command + D |
| Trigger suggestion | Control + Space |
| Trigger suggestion | Command + I |
| Trigger parameter hints | Command + Shift + Space |
| Format document | Option + Shift + F |
| Format selection | Command + K then Command + F |
| Definition | F12 |
| Peek Definition | Option + F12 |
| Open Definition to side | Command + K then F12 |
| Quick Fix | Command + . |
| Show References | Shift + F12 |
| Rename Symbol | F2 |
| Trim trailing whitespace | Command + K then Command + X |
| Change file language | Command + K then M |
| Show all Symbols | Command + T |
| Line | Control + G |
| File | Command + P |
| Symbol | Command + Shift + O |
| Show Problems panel | Command + Shift + M |
| Next error or warning | F8 |
| Next error or warning | Shift + F8 |
| Navigate editor group history | Control + Shift + Tab |
| Go forward | Control + - |
| Go forward | Control + Shift + - |
| Toggle Tab moves focus | Control + Shift + M |
| Close editor | Command + W |
| Close folder | Command + K then F |
| Split editor | Command + \ |
| Focus into 1 editor group 1 | Command + 1 |
| Focus into 2 editor group 2 | Command + 2 |
| Focus into 3 editor group 3 | Command + 3 |
| Focus into previous editor group | Command + K then Command + Left |
| Focus into next editor group | Command + K then Command + Right |
| Move editor left | Command + K then Command + Shift + Left |
| Move editor right | Command + K then Command + Shift + Right |
| Move active editor group Left | Command + K then Left |
| Move active editor group Right | Command + K then Right |
| New File | Command + N |
| Close | Command + W |
| Close All | Command + K then Command + W |
| Reopen closed editor | Command + Shift + T |
| Keep preview mode editor open | Command + K then Enter |
| Open next | Control + Tab |
| Open previous | Control + Shift + Tab |
| Copy path of file | Command + K then P |
| Reveal file in Finder | Command + K then R |
| Show file in new window/instance | Command + K then O |
| Toggle full screen | Command + Control + F |
| Toggle editor layout (horizontal/vertical) | Command + Option + 0 |
| Zoom | Command + = |
| Zoom out | Command + Shift + - |
| Toggle Sidebar visibility | Command + B |
| Show Explorer / Toggle focus | Command + Shift + E |
| Show Source Control | Control + Shift + G |
| Show Debug | Command + Shift + D |
| Show Extensions | Command + Shift + X |
| Replace in files | Command + Shift + H |
| Show Output panel | Command + Shift + U |
| Open Markdown preview | Command + Shift + V |
| Open Markdown preview to side | Command + K then V |
| Zen Mode (Esc Esc to exit) | Command + K then Z |
| Toggle breakpoint | F9 |
| Start/Continue | F5 |
| Step into/ out | F11 |
| Step into/ out | Shift + F11 |
| Step over | F10 |
| Stop | Shift + F5 |
| Show hover | Command + K then Command + I |
| Show integrated terminal | Control + ` |
| Create new terminal | Control + Shift + ` |
| Copy selection | Command + C |
| Scroll up | Command + Up |
| Scroll down | Command + Down |
| Scroll page up | Pageup |
| Scroll page down | Pagedown |
| Scroll to top/bottom | Command + Home |
| Scroll to top/bottom | End |
| Toggle Line Comment | Command + / |
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.
