Skip to content

Instantly share code, notes, and snippets.

@Alpha-T30
Forked from cleary/vscode_shortcuts.md
Created November 7, 2023 17:36
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 Alpha-T30/129b52ff00db9d3e61b3b318c84a4278 to your computer and use it in GitHub Desktop.
Save Alpha-T30/129b52ff00db9d3e61b3b318c84a4278 to your computer and use it in GitHub Desktop.
Helpful shortcuts for VSCode

VSCode Shortcuts

List of helpful shortcuts for faster coding

  • For mac, replace "Ctrl" with "cmd" and "Alt" with "option"

Official List of all commands

General & File

Open Command Pallete

Ctrl+Shift+P

Open New Window

Ctrl+Shift+N

Close Window

Ctrl+W

Quick File Open

Ctrl+P

Access Settings

Ctrl+,

New File

Ctrl+N

Open File

Ctrl+O

Save

Ctrl+S
Ctrl+Shift+S # Save As

Close File

Ctrl+F4

Change File Tabs

Ctrl+PageUP
Ctrl+PageDown

Open Next File (Dropdown)

Ctrl+Tab # Scroll next
Ctrl+Shift+Tab # Scroll prev

Zoom

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

Toggle Sidebar

Ctrl+B

Toggle Sidebar Focus

Ctrl+Shift+E

Spilt Editor

Ctrl+\

Integrated Terminal

Ctrl+` # Toggle terminal
Ctrl+Shift+` # Create new terminal

Code Editing

Go To Start & End Of Line

home
end

Go To Start & End Of File

Ctrl+Home
Ctrl+End

Cut, Copy & Past Line

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

Move Line Up & Down

Alt+Up
Alt+Down

Copy Line Up & Down

Shift+Alt+Up
Shift+Alt+Down

Remove Line

Ctrl+Shift+K

Insert Line

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

Jump To Matching Bracket

Ctrl+Shift+\

Fold

Ctrl+Shift+[
Ctrl+Shift+]

Fold All

Ctrl+K, Ctrl+0 (zero)
Ctrl+K, Ctrl+J

Add Line Comment

Ctrl+/

Add Block Comment

Shift+Alt+A

Scroll Up & Down

Ctrl+Up
Ctrl+Down

Move By Word

Ctrl+Right
Ctrl+Left

Highlight Code

Shift+Any Direction

Go To Next Match

F3

Select Next Match

Ctrl+D

Select All Matches & Add Cursor

Ctrl+F2

Select All Matches from Find

Alt+Enter

Add Cursor

Alt+Click

Go to Symbol

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