Skip to content

Instantly share code, notes, and snippets.

@pritam-patil
Created December 25, 2019 15:13
Show Gist options
  • Save pritam-patil/c129d154c4ae00b282a088666c36ceaf to your computer and use it in GitHub Desktop.
Save pritam-patil/c129d154c4ae00b282a088666c36ceaf to your computer and use it in GitHub Desktop.
Another awesome set of shortcuts

VSCode Shortcuts

List of helpful shortcuts for faster coding

If you have any other helpful shortcuts, feel free to add in the comments of this gist :)

New ones to learn/use:

Files:

Open File/Folder From Sidebar

Cmd+Down

Open File From Explorer

Cmd+O

Delete File

Cmd+Delete

Save As

Shift+Cmd+S

Code editing

Add Block Comment

Shift+Option+A

Jump To Matching Bracket

Shift+Cmd+\

Go to Entity (Functions, vars, etc)

Cmd+Shift+O

De-select Match

Cmd+U

Add Cursor

Option+Click

Highlight Code

Shift+Any Direction

Select Next Match

Cmd+D

Add Line Comment

Cmd+/

Line editing

Insert Line

Cmd+Enter # Insert below
Shift+Cmd+Enter # Insert above

Remove Line

Shift+Cmd+K

Already in use (known)

Copy Line Up & Down

Shift+Option+Up
Shift+Option+Down

Move Line Up & Down

Option+Up
Option+Down

Cut, Copy & Past Line

Cmd+X #Cut
Cmd+C #Copy
Cmd+V #Paste

Go To Start & End Of Line

Cmd+Right
Cmd+Left

Move By Word

Option+Right
Option+Left

Go To Start & End Of File

Cmd+Up
Cmd+Down

Reopen Files

Shift+Cmd+T
Shift+Ctrl+T

Zoom

Cmd++ # Zoom in
Cmd+- # Zoom out

Ctrl++ # Zoom in
Ctrl+- # Zoom out

Spilt Editor

Cmd+\
Ctrl+\

Change File Tabs

Ctrl+Tab 

Quick File Open

Cmd+P

New File

Cmd+N

Save

Cmd+S

Close File

Cmd+W

Sidebar Focus

Shift+Cmd+E

Toggle Sidebar

Cmd+B 

Open New Window/Instance

Shift+Cmd+N 

Close Window

Cmd+W 

Open Command palette

Shift+Cmd+P

Access Settings

Cmd+,
Ctrl+,

Toggle Terminal

Ctrl+`
Ctrl+`

Create New Terminal

Shift+Ctrl+`
Shift+Ctrl+`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment