Visual Studio Code Shortcuts

TODO

  1. Open vscode to play along

Toggle Panels

Toggle left panel ⌘ + b

Toggle bottom panel (terminal) ⌘ + j

Close window ⌘ + w

Command Palette

⌘ + shift + p

allows you to search for any command available to you within vscode

Open File

⌘ + p

Find & Replace

search file ⌘ + f

search all files ⌘ + shift + f

find next selection ⌘ + d

Move/Duplicate/Delete Line

  1. move line
    option + ↓down
    option + ↑up
  1. duplicate line
    option + shift + ↓down
    option + shift + ↑up

  2. delete line ⌘ + shift + k

Cursors

add more cursors option + click

Toggle Comment

⌘ + /

Indent Code Block

right indent tab
left indent shift + tab

Terminal

Open new terminal ctrl + shift + `

Toggle terminal panel ⌘ + j

Preview

Great for viewing markdown files
⌘ + shift + v

Embedded Ruby (ERB) Tag Toggle

Must install Simple Ruby ERB extension

ctrl + shift + `

Resources

Simple Ruby ERB vscode extension

Tips & Tricks