Skip to content

cheatsheetz/vs-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

VS Code Cheat Sheet

Collection of useful VS Code shortcuts


Quick Links

  1. VS Code Cheat Sheet
    1. Quick Links
    2. General
    3. Basic Editing
    4. Navigation
    5. Sidebar
    6. Search And Replace
    7. Multi Cursor And Selection
    8. Enhance Editing

General

Shortcuts description
Ctrl + , open setting
Ctrl + Shift + N New Window instance
Ctrl + W Close Window
Ctrl + N New File

Basic Editing

Shortcuts description
Alt + Up Swap current line to the line above
Alt + Down Swap current line to the line below
Ctrl + X Cut current line or highlighted lines
Ctrl + Shift + [ fold block
Ctrl + Shift + ] unfold block

Navigation

Shortcuts description
Ctrl + P Go to File
Ctrl + G Go to line
Ctrl + Tab Switch tab in current navigation group
Ctrl + 1(or other number) Switch navigation group
Ctrl + K Ctrl + Right Move current tab to next navigation group
Ctrl + K Ctrl + Left Move current tab to previos navigation group
Ctrl + K Right Switch with next navigation group
Ctrl + K Left Switch with previous navigation group

Sidebar

Shortcuts description
Ctrl + B Toggle sidebar
Ctrl + Enter(When focus in Sidebar) Open file to the side
F2(When focus in Sidebar) rename highlighted file
Ctrl + Alt + R(When focus in Sidebar) open containing folder

Search And Replace

Shortcuts description
Ctrl + D Highlight and insert cursor to the next match term
Ctrl + Shift + L Highlight and insert cursor to the all match term
Ctrl + H Search and replace

Multi Cursor And Selection

Shortcuts description
Shift + Alt + Up Insert cursor to the line above
Shift + Alt + Down Insert cursor to the line below
Ctrl + I Hightlight current line
Shift + Up Expand hightlight line above current line
Shift + Down Expand hightlight line below current line
Ctrl + Shift + Right Expand highlight to nearest right term
Ctrl + Shift + Left Expand highlight to nearest left term
Ctrl + Alt + Right Expand highlight to nearest block
Ctrl + A Select All

Enhance Editing

Shortcuts description
Ctrl + Space Trigger suggestion to term near current cursor
Ctrl + Shift + Space Trigger parameter hint

This was taken from

https://github.com/casjay/vs-code/blob/main/CheatSheet.md

About

Visual studio code cheatsheet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published