DEV Community

Cover image for 7 Best VS Code Shortcuts You Should Use
Rizmy Abdulla 🎖️
Rizmy Abdulla 🎖️

Posted on

7 Best VS Code Shortcuts You Should Use

1.Select text word by word.

Mac : cmd+shift+Left/Right Arrow

Windows : Ctrl + Shift + Left/Right Arrow

2.Add multiple cursors.

Mac : opt+cmd+up or opt+cmd+down

Windows : Ctrl+Alt+Up/Down arrow

3.Copy line up / down.

Mac : opt+shift+up or opt+shift+down

Windows : shift+alt+down or shift+alt+up

4.Open markdown preview.

Mac : shift+cmd+v

Windows : ctrl+shift+v

5.Side by side Markdown edit and preview.

Mac : cmd+k v

Windows : ctrl+k v

6.Comment lines.

Windows: Ctrl+K Ctrl+C

Mac: Cmd+K Cmd+C

Remove Commenting

Windows: Ctrl+K Ctrl+U

Mac: cmd+K cmd+U

7.open code with current directory.

Type code . On cmd

Top comments (4)

Collapse
 
waleedhcoder profile image
Waleedh Nihal

This is awesome bro fire 🔥🔥🔥!

Collapse
 
kolja profile image
Kolja

They first one seems stop working since Ventura, or i have another problem. ..

Collapse
 
rahuls profile image
Rahul

use option, instead of command