Skip to content

Latest commit

 

History

History
159 lines (122 loc) · 4.09 KB

vscode-cheatsheet.md

File metadata and controls

159 lines (122 loc) · 4.09 KB
title description created
VSCode CheatSheet
The most commonly used vscode keyboard shortcuts are given here.
2022-10-20

Table of Contents

VSCode Keyboard Shortcuts for Developers

General Shortcuts

Command Description
Ctrl + Shift + P Show Command Palette
Ctrl + Shift + X Show Extensions

🔼Back to Top

Basic Editing

Command Description
Ctrl + A Select All
Ctrl + C Copy line
Ctrl + D Duplicate line
Ctrl + L Select current line
Ctrl + X Cut line
Ctrl + U Undo last cursor operation
Ctrl + V Paste
Ctrl + Y Redo Changes
Ctrl + Z Undo Changes
Alt + Down Move Line Down
Alt + Up Move Line Up

🔼Back to Top

Rich Languages Editing

Command Description
F2 Rename Symbol
Shift + F12 Go to References
F12 Go to Definition
Ctrl + Space Trigger Suggest
Ctrl + . Quick Fix

🔼Back to Top

Multi-cursor and Selection

Command Description
Alt + Click Insert cursor
Shift + Alt + UpArrow Copy line up
Shift + Alt + DownArrow Copy line down
Shift + Alt + Click Select text in blocks
Ctrl + Alt + UpArrow Add cursor above
Ctrl + Alt + DownArrow Add cursor below
Ctrl + Shift + K Delete line
Ctrl + Shift + L Select all occurrences of current selection

🔼Back to Top

Display

Command Description
Ctrl + Shift + F Show Search

🔼Back to Top

Search and Replace

Command Description
Ctrl + F Find
Ctrl + H Replace
Ctrl + Shift + F Find in Files
Ctrl + Shift + H Replace in Files
Ctrl + Shift + Enter Replace All

🔼Back to Top

Navigation

Command Description
Ctrl + P Go to File
Ctrl + J Toggle panel (Opens/closes terminal)
Ctrl + B Toggle primary sidebar
Ctrl + Shift + E Go to explorer
Ctrl + Shift + X Go to extensions
Ctrl + Shift + D Go to Run and Debug
Ctrl + Shift + G Go to Source Control
Ctrl + Shift + H Go to Search
Ctrl + Shift + J Go to Problems
Ctrl + ↑/↓ Scroll up/down
Ctrl+ Home/End Scroll top/bottom

🔼Back to Top

Editor Management

Command Description
Ctrl + W Close Editor
Ctrl + \ Split Editor
Ctrl + Shift + PgUp Move Editor Left
Ctrl + Shift + PgDn Move Editor Right

🔼Back to Top

File Management

Command Description
Ctrl + N New Text File
Ctrl + O Open
Ctrl + S Save
Ctrl + Shift + S Save As
Ctrl + W Close
Ctrl + Shift + T Open Recently Closed Editor

🔼Back to Top

Debug

Command Description
F9 Toggle Breakpoint
F5 Start
Ctrl + F5 Start (without debugging)
F11 Step Into

🔼Back to Top

Integrated Terminal

Command Description
Ctrl + ` Show integrated terminal
Ctrl + Shift + ` Create new integrated terminal

🔼Back to Top