VSCode Shortcuts CheatSheet
VSCode Shortcuts CheatSheet
Shortcuts
CheatSheet
Created by JS Mastery
Ctrl+Shift+P, F1
Show Command Palette
Ctrl+P
Quick Open, Go to File…
Ctrl+Shift+N
New window/instance
Ctrl+Shift+W
Close window/instance
Ctrl+,
User Settings
Ctrl+K Ctrl+S
Keyboard Shortcuts
Ctrl+X
Ctrl+C
Alt+ ↑ / ↓
Shift+Alt + ↓ / ↑
Ctrl+Shift+K
Delete line
Ctrl+Enter
Ctrl+Shift+Enter
Ctrl+Shift+\
Ctrl+] / [
Indent/outdent line
Home / End
Go to beginning/end of line
Ctrl+Home
Go to beginning of file
Ctrl+End
Go to end of file
Ctrl+↑ / ↓
Alt+PgUp / PgDn
Ctrl+Shift+[
Ctrl+Shift+]
Ctrl+K Ctrl+[
Ctrl+K Ctrl+]
Ctrl+K Ctrl+0
Ctrl+K Ctrl+J
Ctrl+K Ctrl+C
Ctrl+K Ctrl+U
Ctrl+/
Alt+Z
Ctrl+T
Show all Symbols
Ctrl+G
Go to Line...
Ctrl+P
Go to File...
Ctrl+Shift+O
Go to Symbol...
Ctrl+Shift+M
Show Problems panel
F8
Go to next error or warning
Shift+F8
Go to previous error or warning
Ctrl+Shift+Tab
Navigate editor group history
Ctrl+F
Find
Ctrl+H
Replace
F3 / Shift+F3
Find next/previous
Alt+Enter
Ctrl+D
Ctrl+K Ctrl+D
Alt+C / R / W
word
Ctrl+Alt+ ↑ / ↓
Insert cursor above / below
Ctrl+U
Undo last cursor operation
Shift+Alt+I
Insert cursor at end of each line selected
https://jsmastery.pro JavaScript Mastery
Multi-cursor & selection
Ctrl+L
Select current line
Ctrl+Shift+L
Select all occurrences of current selection
Ctrl+F2
Select all occurrences of current word
Shift+Alt+→
Expand selection
https://jsmastery.pro JavaScript Mastery
Multi-cursor & selection
Shift+Alt+←
Shrink selection
Ctrl+Shift+Alt + PgUp/PgDn
Column (box) selection page up/down
https://jsmastery.pro JavaScript Mastery
Rich languages editing
Ctrl+Space, Ctrl+I
Trigger suggestion
Ctrl+Shift+Space
Trigger parameter hints
Shift+Alt+F
Format document
Ctrl+K Ctrl+F
Format selection
F12
Go to Definition
Alt+F12
Peek Definition
Ctrl+K F12
Open Definition to the side
Ctrl+.
Quick Fix
Shift+F12
Show References
F2
Rename Symbol
Ctrl+K Ctrl+X
Trim trailing whitespace
Ctrl+K M
Change file language
Ctrl+F4, Ctrl+W
Close editor
Ctrl+K F
Close folder
Ctrl+\
Split editor
Ctrl+ 1 / 2 / 3
Focus into 1st, 2nd or 3rd editor group
Ctrl+Shift+PgUp / PgDn
Move editor left/right
Ctrl+K ← / →
Move active editor group
Ctrl+N
New File
Ctrl+O
Open File...
Ctrl+S
Save
Ctrl+Shift+S
Save As...
Ctrl+K S
Save All
Ctrl+F4
Close
Ctrl+K Ctrl+W
Close All
Ctrl+Shift+T
Ctrl+K Enter
Ctrl+Tab
Open next
Ctrl+Shift+Tab
Open previous
Ctrl+K P
Ctrl+K R
Ctrl+K O
F11
Toggle full screen
Shift+Alt+0
Toggle editor layout (horizontal/vertical)
Ctrl+ = / -
Zoom in/out
Ctrl+B
Toggle Sidebar visibility
Ctrl+Shift+E
Show Explorer / Toggle focus
Ctrl+Shift+F
Show Search
Ctrl+Shift+G
Show Source Control
Ctrl+Shift+D
Show Debug
Ctrl+Shift+X
Show Extensions
Ctrl+Shift+H
Replace in files
Ctrl+Shift+J
Toggle Search details
Ctrl+Shift+U
Show Output panel
Ctrl+Shift+V
Open Markdown preview
Ctrl+K V
Open Markdown preview to the side
Ctrl+K Z
Zen Mode (Esc Esc to exit)
F9
Toggle breakpoint
F5
Start/Continue
Shift+F5
Stop
F11 / Shift+F11
Step into/out
F10
Step over
Ctrl+K Ctrl+I
Show hover
Ctrl+`
Show integrated terminal
Ctrl+Shift+`
Create new terminal
Ctrl+C
Copy selection
Ctrl+V
Paste into active terminal
Ctrl+↑ / ↓
Scroll up/down
Shift+PgUp / PgDn
Scroll page up/down
Ctrl+Home / End
Scroll to top/bottom
Ctrl+M
Shift+Alt+A
That’s all for the VS Code Shortcuts, Now you can find
Fantastic
VS Code
Extensions
Better Comments
Better Comments is an extension used for writing
human-friendly comments in your code, which is
helpful for you and anyone who is reading source-
https://jsmastery.pro JavaScript Mastery
code (especially for teams). Descriptive, human-
involved.
easier commenting:
- for strikethrough
//
TODO - for to-dos
Snippets
Snippets are an excellent add-on for productivity.
again.
Native snippets
Icons
Icons allows you to create descriptive icons to help
palette.
vscode-icon
Themes
One dark pr
Shades of Purpl
Palenigh
Monokai Pr
Material Theme
GitLens
The GitLens extension combines the capabilities of Git
Auto-Close Tag
Using this tool is non-negotiable, every developer
needs to use this in their vscode toolbox, it will not only
catch possible ‘stupid’ errors but it is very handy, you
really don’t have to spend your precious energy
thinking about the small stuff like making sure you
don’t forget to close your tag.
Path Intellisense
With over a 4.2 Million downloads. Path Intellisense can
help with auto-completion for the imports or path
big time.
for you?
NPM Intellisense
It has almost the same functionality as path
packages.
Import Cost
I’ve recently just bumped into this extension, it simply
modules.
message.
SVG
Its a powerful SVG language support extension.
Almost all the features you need to handle SVG files
such as:
SVG Live Preview and Export PN
Minify SVG with SVGO
https://jsmastery.pro JavaScript Mastery
SVG Full Auto Completion
Fast Color Picke
Document Symbol tree.
Code Time
Code Time is an open source plugin for automatic
programming metrics and time tracking in VS Code.
REST Client
REST client is a really helpful extensions for backend
developers, as it allows you to send HTTP request and
view the response directly in Visual Studio Code.