Link Search Menu Expand Document

Visual Studio Cheat Sheet

Visual Studio code shortcuts allow developers to improve production by making it possible for them to operate quicker and better. Keep reading to know about the Visual Code Cheat Sheet.

General Shortcuts

  • Show Command Palette - Ctrl + Shift + P, F1
  • Open a File - Ctrl + P
  • New Window - Ctrl + Shift + N
  • Close Window - Ctrl + Shift + W
  • To open User Settings - Ctrl +
  • Open keyboard shortcuts - Ctrl + K, Ctrl + S

Basic Editing Shortcuts

  • Cut line - Ctrl + X
  • Copy line - Ctrl + C
  • Move line up/down - Alt +
  • Copy line up/down - Shift + Alt +
  • Delete line - Ctrl + Shift + K
  • Insert line below - Ctrl + Enter
  • Insert line above - Ctrl + Shift + Enter
  • Jump to matching bracket - Ctrl + Shift + /
  • Indent/Outdent line - Ctrl + [
  • Go to beginning of file - Ctrl + Home
  • Go to end of file - Ctrl + End
  • Scroll line up/down - Ctrl +
  • Scroll page up/down - Alt + PgUp / PgDn
  • Fold/ unfold region - Ctrl + Shift + [ / ]
  • Fold/ unfold all subregions - Ctrl + K Ctrl + [ / ]
  • Fold/ unfold all regions - Ctrl + K Ctrl + O / Ctrl + K Ctrl + J
  • Add line comment - Ctrl + K Ctrl + C
  • Remove line comment - Ctrl + K Ctrl + U
  • Toggle line comment - Ctrl + /
  • Toggle block comment - Shift + Alt + A
  • Toggle word wrap - Alt + Z
  • Open Command Palette : Ctrl + Shift + P
  • Open App settings : Ctrl +
  • Display keyboard shortcuts : Ctrl + K, Ctrl + S
  • Switch to Extensions pane : Ctrl + Shift + X

Navigation Shortcuts

  • Show All Symbols - Ctrl + T
  • Go to Line - Ctrl + G
  • Go to File - Ctrl + P
  • Go to Symbol - Ctrl + Shift + O
  • Show Problems Panel - Ctrl + Shift + M
  • Go to next/previous error or warning - F8 / Shift + F8
  • Navigate editor group history - Ctrl + Shift + Tab
  • Go back/forward - Alt +
  • Toggle Tab Moves focus - Ctrl + M

Search and Replace Shortcuts

  • Find - Ctrl + F
  • Replace - Ctrl + H
  • Find Next / Previous - F3 / Shift + F3
  • Select all Occurrences of Find Match - Alt + Enter
  • Add Selection to Next Find Match - Ctrl + D
  • Move last selection to Next Find Match - Ctrl + K Ctrl + D
  • Toggle Case - Sensitive - Alt + C / R / W

Multi - Cursor and Selection Shortcuts

  • Insert Cursor - Alt + Click
  • Insert Cursor above / below - Shift + Alt +
  • Undo last cursor operation - Ctrl + U
  • Insert cursor at end of each line selected - Shift + Alt + I
  • Select current line - Ctrl + I
  • Select all occurrences of current selection - Ctrl + Shift + L
  • Select all occurrences of current word - Ctrl + F2
  • Expand selection - Shift + Alt + ->
  • Shrink selection - Shift + Alt + <-
  • Column selection - Shift + Alt + (Drag Mouse) or Ctrl + Shift + Alt +
  • Column selection page up / down - Ctrl + Shift + Alt + PgUp / PgDn

Rich Languages Editing Shortcuts

  • Trigger suggestion - Ctrl + Space
  • Trigger parameter hints - Ctrl + Shift + Space
  • Emmet Expand Abbreviation - Tab
  • Format Document - Shift + Alt + F
  • Format Selection - Ctrl + K Ctrl + F
  • Go to Definition - F12
  • Peek Definition - Alt + F12
  • Open Definition to the side - Ctrl + K F12
  • Quick Fix - Ctrl +.
  • Show References - Shift + F12
  • Rename Symbol - F2
  • Trim trailing whitespace - Ctrl + K Ctrl + X
  • Change file language - Ctrl + K M

Window Management Shortcuts

  • Drag Off Floating Tab Wells - Ctrl + click for multi-select
  • Maximize Floating Window - Double - click on title bar
  • Re - dock Floating Window - Ctrl + double -click on title bar
  • Close Active Document - Ctrl + F4
  • Show Open File List - Ctrl + Alt + Down
  • Show All Floating Windows - Ctrl + Shift + M

Editor Management Shortcuts

  • Close editor - Ctrl + F4, Ctrl + W
  • Close folder - Ctrl + K F
  • Split editor - Ctrl + \
  • Focus into 1st, 2nd or 3rd editor group - Ctrl + 1 \ 2 \ 3
  • Focus into previous / next editor group - Ctrl + K Ctrl + <- / ->
  • Move editor left / right - Ctrl + Shift + PgUp / PgDn
  • Move active editor group - Ctrl + K <- / ->
  • Go to previous error or warning : Shift + F8

File Management Shortcuts

  • New File - Ctrl + N
  • Open File - Ctrl + O
  • Save - Ctrl + S
  • Save As - Ctrl + Shift + S
  • Save All - Ctrl + K S
  • Close / Close All - Ctrl + F4 Ctrl + K Ctrl + W
  • Reopen closed editor - Ctrl + Shift + T
  • Keep preview mode editor open - Ctrl + K Enter
  • Open next - Ctrl + Tab
  • Open previous - Ctrl + Shift + Tab
  • Copy path of active file - Ctrl + K P
  • Reveal active file in explorer - Ctrl + K R
  • Show active file in new window / instance - Ctrl + K O

Debug

  • Toggle breakpoint: F9
  • Start/Continue : F5
  • Stop : Shift + F5
  • Step into/out : F11/ Shift+F11
  • Step over : F10
  • Show hover : ctrl + K/ ctrl + L

Integrated Terminal

  • Show integral terminal : Ctrl+
  • Create new terminal : Ctrl + Shift +
  • Copy selection : Ctrl + C
  • Paste into active terminal : Ctrl + V
  • Scroll page up/down : Shift + PgUp / PgDn
  • Scroll to top/ bottom : Ctrl + Home / End

Display

  • Toggle full screen : F11
  • Toggle editor layout (horizontal/vertical) : shift + Alt + 0
  • Zoom in/out : Ctrl+ = / -
  • Toggle sidebar visibility : Ctrl + B
  • Show Explorer / Toggle focus : Ctrl + Shift + E
  • Show Search : Ctrl + Shift + F
  • Show Source Control : Ctrl + Shift + G
  • Show debug : Ctrl + Shift + D
  • Show Extensions : Ctrl + Shift + X
  • Replace in files : Ctrl + Shift + H
  • Toggle Search details : Ctrl + Shift + J
  • Show Output panel : Ctrl + Shift + U
  • Open Market preview : Ctrl + Shift + V
  • Open Market preview to the side : Ctrl + K V
  • Zen Mode (Esc to exit) : Ctrl + K Z

Most of the developers have conveniently embraced Visual Studio Code and use it as their primary code editor. The question that can vex most of the users is that if they are actually using the platform to its full potential? Aside from being absolutely free and seamless, there is still inherently so much more to it which goes way beyond being just a text editor. These codes that have been mentioned above inevitably propels the efficacy of the platform and the proficiency of the user.

There are a number of benefits that can be availed of through these highly convenient codes, and customization can also be done, which significantly improves the experience through Visual Studio.

Microsoft Visual Studio Code has evolved into a predominant choice when it comes down to all text editors available today. These codes will help you to write and develop your codes with an additional speed that is much-coveted in this competitive scenario.

Other useful articles:


Back to top

© , Visual Studio 101 — All Rights Reserved - Terms of Use - Privacy Policy