Skip to main content
  1. 🔰Posts/
  2. 🗂️Cheat Sheets/
  3. DevOps Cheatsheets/

VSCode Cheatsheet

·493 words·3 mins

Example use of Better Comments extension for VSCode may help you creating more human-friendly comments in your code.

General #

ShortcutDescription
Ctrl + Shift + PShow Command Palette
Ctrl + PQuick Open, Go to File…
Ctrl + Shift + NNew window/instance
Ctrl + Shift + WClose window/instance
Ctrl + ,User Settings
Ctrl + K + Ctrl + SKeyboard Shortcuts
Ctrl + `Open Integrated Terminal
Ctrl + Shift + `Create New Terminal

Search and Replace #

ShortcutDescription
Ctrl + FFind
Ctrl + HReplace
F3Find next
Shift + F3Find previous
Alt + EnterSelect all occurrences of Find match 🔥
Ctrl + Shift + LChange all occurrences of a word 🔥
Ctrl + DAdd selection to next Find match
Ctrl + K + Ctrl + DMove last selection to next Find match
Alt + C/R/WToggle case-sensitive/regex/whole word

Rich Languages Editing #

ShortcutDescription
Ctrl + SpaceTrigger suggestion 🔥
Ctrl + Shift + SpaceTrigger parameter hints
Shift + Alt + FFormat document
Ctrl + K + Ctrl + FFormat selection
F12Go to Definition
Alt + F12Peek Definition
Ctrl + K + F12Open Definition to the side
Ctrl + .Quick Fix
Shift + F12Show References
F2Rename Symbol
Ctrl + K + Ctrl + XTrim trailing whitespace
Ctrl + K + MChange file language

Editor Shortcuts #

ShortcutDescription
Ctrl + EnterInsert Line Below
Ctrl + BackspaceDelete Word Left
Ctrl + DeleteDelete Word Right
Ctrl + HomeGo to Beginning of Line
Ctrl + EndGo to End of Line
Ctrl + PageUpScroll Page Up
Ctrl + PageDownScroll Page Down
Ctrl + LeftMove to Beginning of Word
Ctrl + RightMove to End of Word
Ctrl + UpMove to Beginning of File
Ctrl + DownMove to End of File

File Shortcuts #

ShortcutDescription
Ctrl + NNew File
Ctrl + OOpen File
Ctrl + SSave File
Ctrl + PQuick Open
Ctrl + WClose File
Ctrl + F4Close File
Ctrl + K / FClose All Files
Ctrl + K / Ctrl + WClose All Files
Ctrl + K / Ctrl + FFormat Document
Ctrl + K / Ctrl + OOpen Folder
Ctrl + K / Ctrl + TToggle Terminal
Ctrl + K / Ctrl + XClose Terminal

Debug Shortcuts #

ShortcutDescription
F5Start Debugging
F9Toggle Breakpoint
F10Step Over
F11Step Into
Shift + F11Step Out

Extension Shortcuts #

ShortcutDescription
Ctrl + Shift + XOpen Extensions
Ctrl + Shift + POpen Command Palette

Git Shortcuts #

ShortcutDescription
Ctrl + Shift + GOpen Source Control
Ctrl + Shift + POpen Command Palette

» Sources « #

Other resources:

RobK
Author
RobK
DevOps | Agile | AWS | Ansible | Terraform | PowerShell | Windows | Linux | Git