DEV Community

thomasvanholder
thomasvanholder

Posted on

7 1

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

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more →

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!

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more