0% found this document useful (0 votes)
174 views

VSCode-Cheat Sheet by Linuxsimply

The cheat sheet provides keyboard shortcuts for getting started with VSCode, handling files, navigating code, editing text, debugging code, and using version control and extensions. It includes shortcuts for common tasks like opening files, saving work, searching, replacing text, and stepping through code while debugging. Various regex patterns are also included to help with text matching and search/replace operations in VSCode.

Uploaded by

tgxtb8xz8v
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
174 views

VSCode-Cheat Sheet by Linuxsimply

The cheat sheet provides keyboard shortcuts for getting started with VSCode, handling files, navigating code, editing text, debugging code, and using version control and extensions. It includes shortcuts for common tasks like opening files, saving work, searching, replacing text, and stepping through code while debugging. Various regex patterns are also included to help with text matching and search/replace operations in VSCode.

Uploaded by

tgxtb8xz8v
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

VSCode Cheat Sheet

Getting Started File Handling


CTRL + SHIFT
Open command palette CTRL + N Create new file
+P
CTRL + SHIFT
New window CTRL + O Open file
+N
CTRL + SHIFT
Close window CTRL + S Save file
+W
CTRL + , User settings CTRL SHIFT + S Save as…
CTRL + K +
Keyboard shortcuts CTRL + K + R Reveal active file in explorer
CTRL + S
CTRL + K +
Open workspace CTRL + W Close file
CTRL + O
CTRL + K + CTRL +
Navigation Close all
W
CTRL + P Go to file CTRL + K + P Copy path of active file
CTRL + G Go to line CTRL + K + S Save all
CTRL + SHIFT Show active file in new
Show problems panel CTRL + K + O
+M window
CTRL + T Show all symbols Editing
SHIFT + F8 Go to previous error CTRL + C Copy line
F8 Go to next error CTRL + X Cut line
CTRL + SHIFT
Navigate editor group history CTRL + / Toggle line comment
+ TAB
ALT + ← / → Go back/forward SHIFT + ALT + A Toggle block comment
CTRL + M Toggle tab moves focus CTRL + ] Indent line
Regex CTRL + [ Outdent line
Match zero or more
* CTRL + SHIFT + D Duplicate line
occurrences
Match one or more
+ CTRL + SHIFT + K Delete line
occurrences
Match zero or one CTRL + K + CTRL +
? Auto indent lines
occurrence F
^ Match beginning of a line SHIFT + ALT + F Format document
CTRL + SHIFT +
$ Match the end of a line Insert line above
ENTER
\b Match a word boundary CTRL + ENTER Insert line below
\B Match a non-word boundary CTRL + SHIFT + \ Jump to matching bracket

{n} Match exactly n occurrences CTRL + HOME Go to beginning of file

{n,} Match at least n occurrences CTRL + END Go to end of file


Match between n and m
{n,m} CTRL + SHIFT + [ Fold region
occurrences
Match any single character a, CTRL + K + CTRL +
[abc] Fold all regions
b, or c 0

Prepared By: Nadiba Rahman Copyright ©2023 linuxsimply.com| All rights reserved.
VSCode Cheat Sheet
Regex Editing
Group multiple expressions
(abc) CTRL + SHIFT + ] Unfold region
together
[0-9] Match any single digit ALT + Z Toggle word wrap
Match any single lowercase CTRL + K + CTRL +
[a-z] Add line comment
letter C
Match any single uppercase CTRL + K + CTRL +
[A-Z] Remove line comment
letter U
Backreferences to captured CTRL + K + CTRL +
\1,\2,... Unfold all regions
groups J
Search & Replace F12 Go to definition
CTRL + F Find toolbar ALT + F12 Find all references
CTRL + SHIFT Enable case-sensitive search
CTRL + K + F12 Peek definition
+F in files
ALT + R Replace regular expression F2 Rename symbol
Enable case sensitive
ALT + C CTRL + . Quick fix
replace
CTRL + H Open replace panel CTRL + K + M Change file language
SHIFT + ALT + Replace the previous CTRL + K + CTRL +
Remove trailing whitespace
ENTER occurrence X
ALT + ENTER Replace the next occurrence Editor Management
F3 Search next occurrence CTRL + F4 Close editor
SHIFT + F3 Search previous occurrence CTRL + K + ENTER Open preview mode editor
Add selection to next search
CTRL + D CTRL + SHIFT + T Reopen closed editor
match
CTRL + K + Move last selection to next
CTRL + K + F Close folder
CTRL + D search match
Display CTRL + TAB Cycle forward through tabs
CTRL + SHIFT +
F11 Toggle full screen Cycle backward through tabs
TAB
CTRL + J Toggle panel CTRL + TAB Switch to next editor
CTRL + SHIFT +
CTRL + B Toggle sidebar Switch to previous editor
TAB
SHIFT + ALT +
Toggle editor layout CTRL + 1/2/3 Switch between editor groups
0
CTRL + = Zoom in CTRL + \ Split editor
CTRL + SHIFT Navigate between editor
Show explorer CTRL + ALT + ← / →
+E groups
CTRL + - Zoom out Debugging
CTRL + SHIFT
Show source control F5 Start debugging
+G
CTRL + SHIFT
Show search CTRL + F5 Start without debugging script
+F

Prepared By: Nadiba Rahman Copyright ©2023 linuxsimply.com| All rights reserved.
VSCode Cheat Sheet

Display Debugging
CTRL + SHIFT
Show debug CTRL + SHIFT + Y Open/close debug console
+D
CTRL + SHIFT
Show extensions F9 Toggle breakpoint
+X
CTRL + SHIFT
Toggle search details CTRL + F9 Enable/disable breakpoint
+J
CTRL + SHIFT
Show output panel SHIFT + F9 Toggle conditional breakpoint
+U
CTRL + SHIFT Toggle preview mode for
CTRL + SHIFT + F9 Add a logpoint
+V markdown file
Show markdown preview to
CTRL + K + V F10 Step over
the side
CTRL + K + Z Enter Zen mode F11 Step into
CTRL + K + X Enter Focus mode SHIFT + F11 Step out
Version Control SHIFT + F5 Close debugging
CTRL + SHIFT CTRL + K + CTRL +
Open source control view Show hover
+G I
CTRL + ENTER Stage changes Multiple Cursors

CTRL + ENTER
+ CTRL + Commit changes ALT + CLICK Insert cursor
ENTER

CTRL + SHIFT
Push commits CTRL + ALT + ↑ Add cursor above
+ ENTER
Selection CTRL + ALT + ↓ Add cursor below
CTRL + L Select line CTRL + D Add cursor to next occurrence
CTRL + SHIFT Select all occurrences of CTRL + K + CTRL +
Skip occurrence
+L current selection D
Select all occurrences of
CTRL + F2 CTRL + U Undo last cursor operation
current word
CTRL + SHIFT Insert cursor at end of each
Select Current Block SHIFT + ALT + I
+ ALT + → line selected
ALT + ↑ Move selection up Extension
ALT + ↓ Move selection down CTRL + , Open extension settings
SHIFT + ALT + Show recommended
Copy selected lines up CTRL + SHIFT + P
↑ extensions
SHIFT + ALT +
Copy selected lines down CTRL + SHIFT + X Open extensions view

CTRL + A Select all Terminal
CTRL + SHIFT
Expand selection CTRL + ` Toggle terminal
+→
CTRL + SHIFT
Shrink selection CTRL + SHIFT + ` Create new terminal
+←

Prepared By: Nadiba Rahman Copyright ©2023 linuxsimply.com| All rights reserved.
VSCode Cheat Sheet
Selection Terminal
CTRL + SHIFT
+ ALT +
ARROWS OR
Column (Box) selection mode CTRL + F5 Run terminal
SHIFT + ALT +
(DRAG
MOUSE)
CTRL + SHIFT
+ ALT + Column (Box) selection page
CTRL + K Clear terminal
PageUP/PageD up/down
own
SHIFT + ALT +
Extend column selection CTRL + SHIFT + F5 Stop or restart terminal
ARROWS
Remove column (Box)
ESC
selection

Prepared By: Nadiba Rahman Copyright ©2023 linuxsimply.com| All rights reserved.

You might also like