Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Helpful shortcuts for VSCode

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

Open Command Pallete

Shift+Cmd+P
Shift+Ctrl+P

Access Settings

Cmd+,
Ctrl+,

Toggle Terminal

Ctrl+`
Ctrl+`

Create New Terminal

Shift+Ctrl+`
Shift+Ctrl+`

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

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
Shift+Ctrl+Enter # Insert above

Jump To Matching Bracket

Shift+Cmd+\
Shift+Ctrl+\

Add Line Comment

Cmd+/
Ctrl+/

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
@verdipratama

This comment has been minimized.

Copy link

verdipratama commented Nov 1, 2019

thank you sir!

@Dauli

This comment has been minimized.

Copy link

Dauli commented Nov 2, 2019

Thanks Brad

@8483

This comment has been minimized.

Copy link

8483 commented Nov 2, 2019

Deselect Match is pretty useful. Ctrl + U

@bradtraversy

This comment has been minimized.

Copy link
Owner Author

bradtraversy commented Nov 2, 2019

Deselect Match is pretty useful. Ctrl + U

I realized I completely forgot to add that one in the video. I added it to the file, thanks

@CodesWithAnkit

This comment has been minimized.

Copy link

CodesWithAnkit commented Nov 2, 2019

Its a good list. I use some of them...

@aliarain

This comment has been minimized.

Copy link

aliarain commented Nov 3, 2019

thanks that will be helpful for us

@Pawanpreet27

This comment has been minimized.

Copy link

Pawanpreet27 commented Nov 6, 2019

Thanks a lot !

@Mehremakrem

This comment has been minimized.

Copy link

Mehremakrem commented Nov 7, 2019

thanks Sir

@agnemedia

This comment has been minimized.

Copy link

agnemedia commented Nov 20, 2019

Thank you! Short cut > time saver

@agnemedia

This comment has been minimized.

Copy link

agnemedia commented Nov 20, 2019

Find in active window (mac)
Cmd+F < find
Cmd+Opt+F < find and replace

@rajnish42413

This comment has been minimized.

Copy link

rajnish42413 commented Dec 24, 2019

thanks lot

@PappuKP

This comment has been minimized.

Copy link

PappuKP commented Dec 24, 2019

@umedard

This comment has been minimized.

Copy link

umedard commented Jan 7, 2020

Thank you!

@adamlaviguer

This comment has been minimized.

Copy link

adamlaviguer commented Jan 18, 2020

How does one do the shortcut you did at 8:24-8:29 in your video here: https://www.youtube.com/watch?v=UBOj6rqRUME&list=PLeZyXcna7LTblHCwn_J5He0SrdfwHfkou&index=13&t=244s

After typing "find friends"

@bradtraversy

This comment has been minimized.

Copy link
Owner Author

bradtraversy commented Jan 18, 2020

@IgnacioCentola

This comment has been minimized.

Copy link

IgnacioCentola commented Feb 12, 2020

Thank you man

@ikhsan-fauji

This comment has been minimized.

Copy link

ikhsan-fauji commented Feb 24, 2020

Thank you

@frank-morara

This comment has been minimized.

Copy link

frank-morara commented Feb 26, 2020

@maxwel-kiambati see this.

@franciscolopezsanchez

This comment has been minimized.

Copy link

franciscolopezsanchez commented Mar 11, 2020

Thanks a lot!

@saydur961

This comment has been minimized.

Copy link

saydur961 commented Mar 11, 2020

Thank you

@Tibesti

This comment has been minimized.

Copy link

Tibesti commented Mar 17, 2020

Thank you

@snykscott

This comment has been minimized.

Copy link

snykscott commented Apr 1, 2020

Thanks, I use _Cmd-delete to delete a line on Mac.

@ismail252

This comment has been minimized.

Copy link

ismail252 commented Apr 19, 2020

Thanks, sir

@Amadou-Jallow

This comment has been minimized.

Copy link

Amadou-Jallow commented Apr 25, 2020

thank you very much sir, right now am watching your javaScript crash courses but i have a problem on learning it accordingly, I mean after watching one video i will not know which one to watch next,, so can you please help and make a videos of something like steps in learning JS accordingly, it will help a lot sir

I am Amadou and i am from The Gambia, you taught me HTML, CSS and now you are teaching me JS I thank God that I met someone very great like you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.