Visual Studio Code – 10 Keyboard Shortcuts You Need to Know

Here are 10 of Visual Studio Code keyboard shortcuts that will help you out a lot. Give them a shot and let me know what you think.

Turn off word-wrap
Windows: Alt + z
Mac: ⌥ + z

Toggle the sidebar
Windows: Control + b
Mac: ⌘ + b

Toggle File explorer
Windows: Control + Shift + e
Mac: ⌘ + ⇧ + e

Quick Open a File
Windows: Control + p
Mac: ⌘ + p

Reopen a tab you just closed
Windows: Control + Shift + t
Mac: ⌘ + ⇧ + t

Close the Active Tab
Windows: Control + w
Mac: ⌘ + w

Go to a specific tab that is open
Windows: Alt + number
Mac: ⌃ + number

Add cursor to lines above/below
Windows: Control + Alt + up/down
Mac: ⌘ + ⌥ + up/down

Move a line of code up or down (or block of code)
Windows: Alt + up/down
Mac: ⌥ + up/down

Toggle the VS Code Terminal Window
Windows: Control + ~
Mac:  ⌘ + ~