Skip to content

Instantly share code, notes, and snippets.

@TechRancher
Created July 24, 2020 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TechRancher/a4eaed54f5ac5115596e41610a8e3406 to your computer and use it in GitHub Desktop.
Save TechRancher/a4eaed54f5ac5115596e41610a8e3406 to your computer and use it in GitHub Desktop.
Visual Code Studio Keyboard 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 :)

Official List of all commands

Open/View

Toggle full screen

F11

Open Command Pallete

Shift+Cmd+P
Shift+Ctrl+P
F1

Access Settings

Cmd+,
Ctrl+,

Toggle Terminal

Ctrl+`
Ctrl+`

Create New Terminal

Shift+Ctrl+`
Shift+Ctrl+`

Copy In Terminal

Cmd+Shift+C
Ctrl+Shift+C

Paste Into Active Terminal

Cmd+Shift+V
Ctrl+Shift+V

Toggle Sidebar

Cmd+B 
Ctrl+B

Open New Window/Instance

Shift+Cmd+N 
Shift+Ctrl+N

Close Window

Cmd+W 
Ctrl+W

Working With Files

Sidebar Focus

Shift+Cmd+E
Shift+Ctrl+E

Open File/Folder From Sidebar

Cmd+Down
Ctrl+Down

Change File Tabs

Ctrl+Tab 
Ctrl+PageUP

Quick File Open

Cmd+P
Ctrl+P

Open File From Explorer

Cmd+O
Ctrl+O

New File

Cmd+N
Ctrl+N

Save

Cmd+S
Ctrl+S

Save As

Shift+Cmd+S
Shift+Ctrl+S

Close File

Cmd+W
Ctrl+W

Delete File

Cmd+Delete
Ctrl+Delete

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+\

Code Editing

Find Character or Word

Cmd+F
Ctrl+F

Replace Character or Word

Cmd+H
Ctrl+H

Go To Start & End Of Line

Cmd+Right
Cmd+Left

Ctrl+Right
Ctrl+Left

home
end

Move By Word

Option+Right
Option+Left

Alt+Right
Alt+Left

Go To Start & End Of File

Cmd+Up
Cmd+Down

Ctrl+Home
Ctrl+End

Cut, Copy & Past Line

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

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

Move Line Up & Down

Option+Up
Option+Down

Alt+Up
Alt+Down

Copy Line Up & Down

Shift+Option+Up
Shift+Option+Down

Shift+Alt+Up
Shift+Alt+Down

Remove Line

ShiftCmd+K
Shift+Ctrl+K

Insert Line

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

Ctrl+Enter # Insert below
Ctrl+Shift+Enter # Insert above

Jump To Matching Bracket

Shift+Cmd+\
Shift+Ctrl+\

Add Line Comment

Cmd+/
Ctrl+/
Ctrl+K Ctrl+C

Add Block Comment

Shift+Option+A
Shift+Alt+A

Highlight Code

Shift+Any Direction

Select Next Match

Cmd+D
Ctrl+D

De-select Match

Cmd+U
Ctrl+U

Add Cursor

Option+Click
Alt+Click

Go to Entity (Functions, vars, etc)

Cmd+Shift+O
Ctrl+Shift+O

Markdown

View Preview

Cmd+Shift+V
Ctrl+Shift+V

View Preview To The Side

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