All hotkeys

VS Code hotkeys

General

F1–Show Command Palette
CTRLSHIFTP–Show Command Palette
CTRLP–Quick Open File...
CTRLSHIFTN–New Window / Instance
CTRLSHIFTW–Close Window / Instance
CTRL,–Options (User Preferences)
CTRLKCTRLS–Keyboard Shortcuts (Control)

Edit

CTRLX–Cut Line (Empty Selection)
CTRLC–Copy Line (Empty Selection)
ALT↑–Move Line Up
ALT↓–Move line down
ALTSHIFT↑–Copy line up
ALTSHIFT↓–Copy line down
CTRLSHIFTK–Delete line
CTRLENTER–Add new line below
CTRLSHIFTENTER–Add new line above
CTRLSHIFT\–Go to matching bracket
CTRL[–Decrease indent
CTRL]–Increase indent
HOME–Go to top line
END–Go to end of line
CTRLHOME–Go to beginning of file
CTRLEND–Go to end of file
CTRL↑–Scroll line up
CTRL↓–Scroll line down
ALTPAGE UP–Scroll page up
ALTPAGE DOWN–Scroll page down
CTRLSHIFT[–Collapse code fragment
CTRLSHIFT]–Expand code fragment
CTRLKCTRL[–Collapse Recursively
CTRLKCTRL]–Expand recursively
CTRLKCTRL0–Collapse all
CTRLKCTRLJ–Expand all
CTRLKCTRLC–Set inline comment
CTRLKCTRLU–Uncomment inline
CTRL/–Set/Uncomment inline comment
ALTSHIFTA–Set/Uncomment block comment
ALTZ–Turn line wrap on/off

Navigation

CTRLT–Show all characters
CTRLG–Go to line...
CTRLP–Go to file...
CTRLSHIFTO–Go to symbol...
CTRLSHIFTM–Show problem panel
F8–Go to next error or warning
SHIFTF8–Go to previous error or warning
CTRLSHIFTTAB–Navigate editor tab history
ATL→–Go forward
ATL←–Go back
CTRLM–Toggle TAB key moves focus

Find and Replace

CTRLF–Find
CTRLH–Replace
F3–Find Next
SHIFTF3–Find Previous
ALTENTER–Select all occurrences when searching
CTRLD–Add selection to next match
CTRLKCTRLD–Move last selection to next match
ALTC–Turn case-sensitive search on or off
ALTR–Turn regular expression search on or off
ALTW–Turn on or off whole word search

Cursor and Selection

ALTCLICK–Add cursor
CTRLALT↑–Add cursor above
CTRLALT↓–Add cursor below
CTRLU–Undo last cursor action
ALTSHIFTI–Add cursor to end of each selected line
CTRLL–Select current line
CTRLSHIFTL–Select all occurrences of current selection
CTRLF2–Select all occurrences of current word
ALTSHIFT→–Expand Selection
ALTSHIFT←–Contract Selection
ALTSHIFTDRAG MOUSE–Selection by Columns
CTRLALTSHIFTARROW–Selection by Columns
CTRLALTSHIFTPAGE UP–Selection by Columns, Page Up
CTRLALTSHIFTPAGE DOWN–Selection by Columns, Page Down

Languages

CTRLSPACE–Toggle Sentence
CTRLI–Toggle Sentence
CTRLSHIFTSPACE–Toggle Option Hints
ALTSHIFTF–Format Document
CTRLKCTRLF–Format Selection
F12–Go to Definition
ALTF12–Show Definition
CTRLKF12–Open Definition Sidebar
CTRL.–Quick Fix...
SHIFTF12–Go to Links
F2–Rename Symbol
CTRLKCTRLX–Remove Trailing Whitespace
CTRLKM–Change Language Mode

Editor and Tabs

CTRLF4–Close Editor
CTRLW–Close Editor
CTRLKF–Close Workspace
CTRL\–Split Editor
CTRL1..3–Focus on First/Second/Third Editor Pane
CTRLKCTRL→–Move Focus to Next Editor Pane
CTRLKCTRL←–Move Focus to Previous Editor Pane
CTRLSHIFTPAGE UP–Move Tab Left
CTRLSHIFTPAGE DOWN–Move Tab Right
CTRLK→–Move Tab to Next Pane
CTRLK←–Move Tab to Previous Pane

Files

CTRLN–New File
CTRLO–Open File
CTRLS–Save
CTRLSHIFTS–Save As...
CTRLKS–Save All
CTRLF4–Close
CTRLKCTRLW–Close All
CTRLSHIFTT–Open Closed Editor
CTRLKENTER–Save Editor
CTRLTAB–Quickly Open Previously Used Editor
CTRLSHIFTTAB–Quickly Open Oldest Editor used
CTRLKP–Copy path of active file
CTRLKR–Open active file in Explorer
CTRLKO–Open active file in new window

View

F11–Full Screen
ALTSHIFT0–Toggle editor window arrangement
CTRL=–Zoom in
CTRL-–Zoom out
CTRLB–Change sidebar visibility
CTRLSHIFTE–Show Explorer
CTRLSHIFTF–Show Finder
CTRLSHIFTG–Show Version Control
CTRLSHIFTD–Show Run and Debug
CTRLSHIFTX–Show Extensions
CTRLSHIFTH–Replace in Files
CTRLSHIFTJ–Replacement Details in Files
CTRLSHIFTU–Toggle Output Pane Visibility
CTRLSHIFTV–Markdown Preview
CTRLKV–Markdown Preview and Split Editor
CTRLKZ–Toggle Zen Mode

Debug

F9–Toggle Breakpoint
F5–Start/Continue Debugging
SHIFTF5–Stop Debugging
F11–Step Into
SHIFTF11–Step Out
F10–Step Over
CTRLKI–Show on Hover

Terminal

CTRL`–Show Integrated Terminal
CTRLSHIFT`–Create New Terminal
CTRLC–Copy Selection
CTRLV–Paste into Active Terminal
CTRL↑–Scroll Up
CTRL↓–Scroll down
SHIFTPAGE UP–Scroll up one page
SHIFTPAGE DOWN–Scroll down one page
CTRLHOME–Scroll to top
CTRLEND–Scroll to bottom