Vs Code Shortcuts CheatSheet
Vs Code Shortcuts CheatSheet
Vs Code Shortcuts CheatSheet
Shortcuts
CheatSheet
General
Ctrl+Shift+P, F1
Ctrl+P
Ctrl+Shift+N
New window/instance
Ctrl+Shift+W
Close window/instance
General
Ctrl+,
User Settings
Ctrl+K Ctrl+S
Keyboard Shortcuts
Basic editing
Ctrl+X
Cut line (empty selection)
Ctrl+C
Copy line (empty selection)
Alt+ ↑ / ↓
Move line up/down
Shift+Alt + ↓ / ↑
Copy line up/down
Basic editing
Ctrl+Shift+K
Delete line
Ctrl+Enter
Insert line below
Ctrl+Shift+Enter
Insert line above
Ctrl+Shift+\
Jump to matching bracket
Basic editing
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
Basic editing
Ctrl+↑ / ↓
Scroll line up/down
Alt+PgUp / PgDn
Scroll page up/down
Ctrl+Shift+[
Fold (collapse) region
Ctrl+Shift+]
Unfold (uncollapse) region
Basic editing
Ctrl+K Ctrl+[
Fold (collapse) all subregions
Ctrl+K Ctrl+]
Unfold (uncollapse) all subregions
Ctrl+K Ctrl+0
Fold (collapse) all regions
Ctrl+K Ctrl+J
Unfold (uncollapse) all regions
Basic editing
Ctrl+K Ctrl+C
Add line comment
Ctrl+K Ctrl+U
Remove line comment
Ctrl+/
Toggle line comment
Alt+Z
Toggle word wrap
Navigation
Ctrl+T
Show all Symbols
Ctrl+G
Go to Line...
Ctrl+P
Go to File...
Ctrl+Shift+O
Go to Symbol...
Navigation
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
Search and replace
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
Multi-cursor & selection
Alt+Click
Insert cursor
Ctrl+Alt+ ↑ / ↓
Insert cursor above / below
Ctrl+U
Undo last cursor operation
Shift+Alt+I
Insert cursor at end of each line selected
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
Multi-cursor & selection
Shift+Alt+←
Shrink selection
Ctrl+Shift+Alt + PgUp/PgDn
Column (box) selection page up/down
Rich languages editing
Ctrl+Space, Ctrl+I
Trigger suggestion
Ctrl+Shift+Space
Shift+Alt+F
Format document
Ctrl+K Ctrl+F
Format selection
Rich languages editing
F12
Go to Definition
Alt+F12
Peek Definition
Ctrl+K F12
Ctrl+.
Quick Fix
Rich languages editing
Shift+F12
Show References
F2
Rename Symbol
Ctrl+K Ctrl+X
Ctrl+K M
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
Editor management
Ctrl+Shift+PgUp / PgDn
Move editor left/right
Ctrl+K ← / →
Move active editor group
File management
Ctrl+N
New File
Ctrl+O
Open File...
Ctrl+S
Save
Ctrl+Shift+S
Save As...
File management
Ctrl+K S
Save All
Ctrl+F4
Close
Ctrl+K Ctrl+W
Close All
Ctrl+Shift+T
Reopen closed editor
File management
Ctrl+K Enter
Keep preview mode editor open
Ctrl+Tab
Open next
Ctrl+Shift+Tab
Open previous
Ctrl+K P
Copy path of active file
File management
Ctrl+K R
Reveal active file in Explorer
Ctrl+K O
Show active file in new window/instance
Display
F11
Toggle full screen
Shift+Alt+0
Toggle editor layout (horizontal/vertical)
Ctrl+ = / -
Zoom in/out
Ctrl+B
Toggle Sidebar visibility
Display
Ctrl+Shift+E
Show Explorer / Toggle focus
Ctrl+Shift+F
Show Search
Ctrl+Shift+G
Show Source Control
Ctrl+Shift+D
Show Debug
Display
Ctrl+Shift+X
Show Extensions
Ctrl+Shift+H
Replace in files
Ctrl+Shift+J
Toggle Search details
Ctrl+Shift+U
Show Output panel
Display
Ctrl+Shift+V
Open Markdown preview
Ctrl+K V
Open Markdown preview to the side
Ctrl+K Z
Zen Mode (Esc Esc to exit)
Debug
F9
Toggle breakpoint
F5
Start/Continue
Shift+F5
Stop
F11 / Shift+F11
Step into/out
Debug
F10
Step over
Ctrl+K Ctrl+I
Show hover
Integrated terminal
Ctrl+`
Ctrl+Shift+`
Ctrl+C
Copy selection
Ctrl+V
Ctrl+↑ / ↓
Scroll up/down
Shift+PgUp / PgDn
Ctrl+Home / End
Scroll to top/bottom
Other
Ctrl+M
Toggle Tab moves focus
Shift+Alt+A
Toggle block comment
- JavaScript Mastery
jsmasterypro javascriptmastery
Bonus
Fantastic
VS Code
Extensions
Bracket Pair Colorizer 2
The VS extension Bracket Pair Colorizer matches
corresponding brackets in your code with the same
color. This is a great help when you’re working with
things like nested components, objects, or functions
that all have brackets or parentheses.
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-
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.
Auto Rename Tag
While VSCode inherently highlights matching tags
and immediately adds closing tags whenever you
type an opening tag, Auto Rename Tag automatically
renames tags that you change.
Path Intellisense
With over a 4.2 Million downloads. Path Intellisense can
help with auto-completion for the imports or path
after calling a component, and trust me, it helped me
big time.
for you?
NPM Intellisense
packages.
Import Cost
modules.
message.
Todo+
Todo+ helps you manage todo lists with ease, Its
powerful, portable, easy to use and customizable..
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
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.
Code Time has feature called Flow Mode. It makes it
easy to eliminate distractions, mute notifications, and
stay focused when you are in flow.
Code Time also shows you a personalized dashboard
to summarizes your coding data - such as your code
time by project, lines of code, and keystrokes—today,
yesterday, last week, and over the last 90 days.
You can also see more advanced data visualizations
by clicking more data at software.com in the sidebar.
Code Spell Checker
Code Spell Checker helps you catch common spelling
REST Client
REST client is a really helpful extensions for backend
- JavaScript Mastery
jsmasterypro javascriptmastery