DEV Community ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป

thomasvanholder
thomasvanholder

Posted on

10 VS Code keyboard shortcuts for Mac

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

Top comments (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!

๐ŸŒš Life is too short to browse without dark mode