VSCode Keyboard Shortcuts

VSCode Keyboard Shortcuts

Ⅰ. Editor

Groups

ShortcutCommand
Ctrl + 1/2Focus first/second editor group
Ctrl + MMaximize editor group
Ctrl + WClose editor
Alt + F4Close windows
Alt + A/DOpen previous/next editor
Ctrl + Shift + W/A/S/DView: split editor up/down/left/right

📨 PS:

  • Ctrl + M When spliting, maximize the current editor group, press again to cancel
  • Alt + A/D View: Open previous/next editor in the current editor group
  • Ctrl + Shift + W/A/S/D Move the current editor group to the up/left/down/right

Coding

ShortcutCommand
Alt + Up/DownArrowMove line up/down
Alt + Shift + Up/DownArrowCopy line up/down
Ctrl + C/X/YCopy/Cut/Delete line
Ctrl + ZUndo
Ctrl + Shift + ZRedo
Alt + ScrollAccelerate scrolling
Ctrl + Alt + Up/DownArrowAdd cursor above/below
Alt + ClickInsert cursor at click
Ctrl + Home/EndcursorTop/Bottom
Alt + [Go to Bracket
Alt + ]Select to Bracket
Ctrl + [fold
Ctrl + ]unfold

📨 PS:

  • Alt + Up/DownArrow Move the current line up/down
  • Ctrl + Alt + Up/DownArrow Add cursor above/below the current line, press ESC
    to exit
  • Alt + Click Insert cursor where you click, press ESC to exit
  • Ctrl + Home/End Move cursor to the top/bottom of the file

Go to and Peek

ShortcutCommand
F12Go to definition
Ctrl + F12Peek implementation
Shift + F12Go to references
Alt + F12Peek definition
Shift + Alt + F12Find all references
Ctrl + Shift + OGo to symbol in editor
Ctrl + TGo to symbol in workspace

Ⅱ. Explorer

Files

ShortcutCommand
JNew File
KNew Folder
EReveal in explorer
C/X/RCopy/cut/rename
TOpen in default integrated terminal

List

ShortcutCommand
IList.focusParent
AList.collapse
DList.expand
QList.collapseAll
F3List.find

Ⅲ. Workbench

ShortcutCommand
Ctrl + Shift + PShow all command
Ctrl + Shift + MToggle panel visibility
Ctrl + Shift + FToggle search visibility
Ctrl + Shift + GToggle source control visibility
Ctrl + Shift + TToggle todo tree visibility
Ctrl + EToggle explorer visibility
Alt + EToggle Secondary Sidebar visibility

Ⅳ. Extensions

ShortcutCommand
Alt + OProject Manager: List Projects to Open
Alt+QJumpy Word Mode
Alt+WJumpy Line Mode
Ctrl+LBookmarks: Toggle Labeled
Bookmarks: ListBookmarks: List
作者

Jiaxing Gao

发布于

2024-01-15

更新于

2024-11-23

许可协议

评论

}