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 verdipratama commented Nov 1, 2019

thank you sir!

@Dauli

This comment has been minimized.

Copy link

@Dauli Dauli commented Nov 2, 2019

Thanks Brad

@8483

This comment has been minimized.

Copy link

@8483 8483 commented Nov 2, 2019

Deselect Match is pretty useful. Ctrl + U

@bradtraversy

This comment has been minimized.

Copy link
Owner Author

@bradtraversy 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 CodesWithAnkit commented Nov 2, 2019

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

@aliarain

This comment has been minimized.

Copy link

@aliarain aliarain commented Nov 3, 2019

thanks that will be helpful for us

@Pawanpreet27

This comment has been minimized.

Copy link

@Pawanpreet27 Pawanpreet27 commented Nov 6, 2019

Thanks a lot !

@Mehremakrem

This comment has been minimized.

Copy link

@Mehremakrem Mehremakrem commented Nov 7, 2019

thanks Sir

@agnemedia

This comment has been minimized.

Copy link

@agnemedia agnemedia commented Nov 20, 2019

Thank you! Short cut > time saver

@agnemedia

This comment has been minimized.

Copy link

@agnemedia 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 rajnish42413 commented Dec 24, 2019

thanks lot

@PappuKP

This comment has been minimized.

Copy link

@PappuKP PappuKP commented Dec 24, 2019

@umedard

This comment has been minimized.

Copy link

@umedard umedard commented Jan 7, 2020

Thank you!

@adamlaviguer

This comment has been minimized.

Copy link

@adamlaviguer 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 bradtraversy commented Jan 18, 2020

@IgnacioCentola

This comment has been minimized.

Copy link

@IgnacioCentola IgnacioCentola commented Feb 12, 2020

Thank you man

@ikhsan-fauji

This comment has been minimized.

Copy link

@ikhsan-fauji ikhsan-fauji commented Feb 24, 2020

Thank you

@frank-morara

This comment has been minimized.

Copy link

@frank-morara frank-morara commented Feb 26, 2020

@maxwel-kiambati see this.

@franciscolopezsanchez

This comment has been minimized.

Copy link

@franciscolopezsanchez franciscolopezsanchez commented Mar 11, 2020

Thanks a lot!

@saydur961

This comment has been minimized.

Copy link

@saydur961 saydur961 commented Mar 11, 2020

Thank you

@Tibesti

This comment has been minimized.

Copy link

@Tibesti Tibesti commented Mar 17, 2020

Thank you

@snykscott

This comment has been minimized.

Copy link

@snykscott 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 ismail252 commented Apr 19, 2020

Thanks, sir

@Amadou-Jallow

This comment has been minimized.

Copy link

@Amadou-Jallow 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

@Thompsonmaxdwell

This comment has been minimized.

Copy link

@Thompsonmaxdwell Thompsonmaxdwell commented Jul 6, 2020

Thanks Brad

@negimohit1209

This comment has been minimized.

Copy link

@negimohit1209 negimohit1209 commented Jul 9, 2020

Thanks Brad

@AtharvaKitkaru

This comment has been minimized.

Copy link

@AtharvaKitkaru AtharvaKitkaru commented Jul 11, 2020

Thank you sir

@TechRancher

This comment has been minimized.

Copy link

@TechRancher TechRancher commented Jul 24, 2020

Thanks Brad

@kirandeep123

This comment has been minimized.

Copy link

@kirandeep123 kirandeep123 commented Jul 27, 2020

Thanks

@AnushkaWijegoonawardana97

This comment has been minimized.

Copy link

@AnushkaWijegoonawardana97 AnushkaWijegoonawardana97 commented Jul 30, 2020

This one is very useful. Thank you so much.

@peddiashrith

This comment has been minimized.

Copy link

@peddiashrith peddiashrith commented Aug 3, 2020

Thanks a ton!

@dipingit

This comment has been minimized.

Copy link

@dipingit dipingit commented Aug 7, 2020

thanks man!

@yogeshmishra667

This comment has been minimized.

Copy link

@yogeshmishra667 yogeshmishra667 commented Aug 15, 2020

thanks you so much it's really helpful 🧡

@kkiran16

This comment has been minimized.

Copy link

@kkiran16 kkiran16 commented Sep 9, 2020

Thank you so much.

@Fortune-Labs

This comment has been minimized.

Copy link

@Fortune-Labs Fortune-Labs commented Oct 3, 2020

wow, very helpful

@ibby360

This comment has been minimized.

Copy link

@ibby360 ibby360 commented Oct 7, 2020

Thanks, dawg

@amans199

This comment has been minimized.

Copy link

@amans199 amans199 commented Oct 9, 2020

Very helpful, thanks

@Elijah-trillionz

This comment has been minimized.

Copy link

@Elijah-trillionz Elijah-trillionz commented Oct 24, 2020

Very helpful. Thank 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.