close
The Wayback Machine - https://web.archive.org/web/20210911142620/https://dev.to/thomasvanholder/10-vs-code-keyboard-shortcuts-for-mac-26b6

DEV Community

loading...

10 VS Code keyboard shortcuts for Mac

Image thomasvanholder
・1 min read

Speed up your development flow by utilising common keyboards shortcuts in VS Code. Once you get a hang of a few shortcuts, you can deepdive into the complete list of all macos keyboard shortcuts for VS Code.

Find selected text

  • all instances: ⇧⌘L
  • the next instance: ⌘D Find selected text

Multi-cursor selection

  • above the current line: ⌥⌘↑
  • below the current line: ⌥⌘↓

Multi-cursor


Select text around cursor

  • Up: ⇧↑
  • Down: ⇧↓
  • Left: ⇧←
  • Right: ⇧→

Select-around


Code folding

  • Fold current selection: ⌥⌘[
  • Unfold current selection: ⌥⌘]
  • Unfold all code in file: ⌘K⌘J

Code folding


Split screen display

  • vertical: ⌘\
  • horizontal: ⌥⌘0 (split vertical first)

Split screen

Discussion (1)

Collapse
acc3ssd3n13d profile image
Error401:"Name not authorized"

Really helpful! I use split screen a lot when building firmware. I was also looking for how to do ⇧⌘L last night lol. Thanks a bunch!