Keyboard Shortcuts for Visual studio code.

Microsoft visual studios is one of the best and most used text editors in the world. This text editor has been released by Microsoft just some few years now but has gained popularity so fast due to it’s simple user interface and powerful IDE-like features. Visual studio codes supports almost all the programming languages. It…

Microsoft visual studios is one of the best and most used text editors in the world. This text editor has been released by Microsoft just some few years now but has gained popularity so fast due to it’s simple user interface and powerful IDE-like features.

Visual studio codes supports almost all the programming languages. It also has a feature which enables users to add programming languages which are not built with visual studio codes. This can be done through the app’s extension browser.

One must know almost all the shortcuts involved in using the visual studio codes before venturing into using the app itself.

Below is a table of visual studio codes shortcuts and their functions.

 

Shortcut functions
Basic Functionality
Ctrl + Shift + P Open Command Palette
Ctrl + , Open app settings
Ctrl + K, Ctrl + S Display keyboard shortcuts
Ctrl + Shift + X Switch to Extensions pane
Ctrl + N New file
Ctrl + Shift + N New window
¹Ctrl + F4 Close file
Ctrl + Shift + W Close window
¹F11 Toggle Full Screen mode
Ctrl + B Toggle sidebar visibility
File Management
Ctrl + O Open file
Ctrl + S Save file
Ctrl + Shift + S Save as…
Ctrl + K, S Save all files
Ctrl + K, Ctrl + W Close all
Ctrl + Shift + T Reopen last closed
Editing Commands
Ctrl + C Copy selection or current line
Ctrl + X Cut selection or current line
Ctrl + V Paste
Ctrl + Shift + K Delete line
Home Go to beginning of line
End Go to end of line
Ctrl + Home Go to beginning of file
Ctrl + End Go to end of file
Alt + Up / Down Move line up or down
Ctrl + ] Indent line
Ctrl + [ Outdent line
Ctrl + / Comment out line
Shift + Alt + A Comment out region
Folding
Ctrl + Shift + [ Fold region
Ctrl + Shift + ] Unfold region
Ctrl + K, Ctrl + [ Fold all subregions
Ctrl + K, Ctrl + ] Unfold all subregions
Ctrl + K, Ctrl + 0 Fold all regions
Ctrl + K, Ctrl + J Unfold all regions
Editor Navigation
Ctrl + P Go to file
Ctrl + G Go to line
Ctrl + T Show all symbols
Ctrl + Shift + O Go to symbol
F8 Go to next error or warning
Shift + F8 Go to previous error or warning
Ctrl + Shift + M Show Problems panel
¹Alt + Left Go back
¹Alt + Right Go forward
Find and Replace
Ctrl + F Open Find dialog
Ctrl + H Open Replace dialog
Ctrl + Shift + H Replace in files
¹F3 Find next
¹Shift + F3 Find previous
Alt + Enter Select all matches for search term
Ctrl + D Add current selection to Find match
Ctrl + K, Ctrl + D Move previous selection to next Find match
Selection and Multiple Cursors
Ctrl + L Select current line
Ctrl + Shift + L Select all instances of current selection
Ctrl + F2 Select all matches of current word
¹Shift + Alt + Right Arrow Expand selection
¹Shift + Alt + Left Arrow Shrink selection
Alt + Click Insert cursor
Ctrl + Alt + Up Arrow / Down Arrow Insert cursor above or below current line
Ctrl + U Undo last cursor
Shift + Alt + I Insert cursor at the end of each selected line
Split Editor Management
Ctrl + \ Split editor
Ctrl + 1 / 2 / 3 Focus on editor pane 1, 2, or 3
Ctrl + K, Ctrl + Right Arrow / Left Arrow Focus on next / previous editor pane
¹Ctrl + Shift + PgUp Move editor left
¹Ctrl + Shift + PgDown Move editor right
Integrated Terminal
¹Ctrl + ` Show integrated terminal
¹Ctrl + Shift + ` Create new terminal instance
Ctrl + Up Arrow / Down Arrow Scroll up / down
Ctrl + Home / End Scroll to top / bottom
macOS-Specific Shortcuts
Cmd + W Close file
Cmd + Ctrl + F Toggle full screen
Cmd + – Go back
Cmd + Shift + – Go forward
Cmd + G Find next
Cmd + Shift + G Find previous
Cmd + Control + Shift + Right Arrow Expand selection
Cmd + Control + Shift + Left Arrow Shrink selection
Cmd + K, Cmd + Shift + Left Move editor left
Cmd + K, Cmd + Shift + Right Move editor right
Control + ` Show integrated terminal
Control + Shift + ` Create new terminal instance

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.