Vscode-Macos-Shortcuts

VSCode shortcuts

Side Menu

shortcutdescription
⌘ + BHide show side menu
⌘ + ⇧ + EExplorer window
⌘ + ⇧ + FFind window
⌘ + ⇧ + JFind in files window
βŒƒ + ⇧ + GGit window
⌘ + ⇧ + DDebug window
⌘ + ⇧ + XExtension window

Multi-Cursor Editing

shortcutdescription
⌘ + βŒ₯ + ↓add a new cursor below
βŒ₯ + Clickadd a new cursor at the mouse click
⌘ + ⇧ + Ladd new cursor behind all instances of a word

Split editor

shortcutdescription
⌘ + (\)split

Split Window focusing

shortcutdescription
⌘ + 0explorer panel
⌘ + 11st window split window
⌘ + 22nd window split window
βŒƒ + ~terminal window
^ + tabswitch between tabs
⌘ + ~switch between VS code editor windows

IntelliSense

shortcutdescription
βŒƒ + Spaceto invoke IntelliSense

Line Action

shortcutdescription
⇧ + βŒ₯ + ↓copy the line and insert below
⇧ + βŒ₯ + ↑copy the line and insert above
βŒ₯ + ↓move entire line below
βŒ₯ + ↑move entire line above
⌘ + ⇧ + Kdelete entire line

Rename Refactoring

shortcutdescription
F2 (Fn + F2)Rename Symbol in the current project
Right Mouse Click -> Rename SymbolRename Symbol in the current project

Formatting

shortcutdescription
⇧ + βŒ₯ + Fformat entire document
⌘ + K and ⌘ Fformat selected text

Transform selected

shortcutdescription
^ + ⇧ + βŒ₯ + Ltransform selected to lower
^ + ⇧ + βŒ₯ + Utransform selected to upper
^ + ⇧ + βŒ₯ + Stransform selected to snake
^ + ⇧ + βŒ₯ + Ttransform selected to titelcase

Code Folding

shortcutdescription
⌘ + βŒ₯ + [fold
⌘ + βŒ₯ + ]unfold
⌘ K and ⌘ 0fold all
⌘ K and ⌘ Junfold all
⌘ K and ⌘ 1fold 1 level
⌘ K and ⌘ 2fold 2 levels
⌘ K and ⌘ 5fold 5 levels

Errors and Warnings

shortcutdescription
F8navigate across errors