Visual Studio Code Shortcuts (Windows)

Ctrl+Shift+P, F1 Open Command Palette
Ctrl+P Open File Quickly
Ctrl+Shift+N Open New Window/Instance
Ctrl+Shift+W Close Window/Instance
Basic Edit
Ctrl+X Cut Current Line
Ctrl+C Copy Current Line
Alt+ ↑ / ↓ Move current line up/down
Shift+Alt + ↓ / ↑ Copy current line up/down
Ctrl+Shift+K Delete current line
Ctrl+Enter Insert below current line
Ctrl+Shift+Enter Above current line Insert
Ctrl+Shift+\ Jump to matching bracket
Ctrl+] / [ Indent/unindent
Home Go to beginning of line
End Go to end of line
Ctrl+Home Go to beginning of page
Ctrl+End Go to end of page
Ctrl+↑ / ↓ Up /Scroll down
Alt+PgUp / PgDown Page up/down
Ctrl+Shift+[ Collapse current block
Ctrl+Shift+] Expand current block
Ctrl+K Ctrl+[ Collapse all sub-blocks
Ctrl+K Ctrl+] Expand all sub- blocks Block
Ctrl+K Ctrl+0 Collapse all code blocks
Ctrl+K Ctrl+J Expand all code blocks
Ctrl+K Ctrl+C Add line comment
Ctrl+K Ctrl+U Delete line comment
Ctrl+/ Add/delete line comment
Shift+Alt+A Add/delete block comment
Alt+Z Wrap line
navigation
Ctrl+T Show all symbols
Ctrl+G Jump to line
Ctrl+P Jump Go to file
Ctrl+Shift+O Jump to symbol
Ctrl+Shift+M Show problem panel
F8 Jump to next problem or warning
Shift+F8 Jump to previous problem or warning
Ctrl+Shift+Tab Show editor file history
Alt+ ← / → View files backward/forward
Ctrl+M Open/close tab Move focus
Search and replace
Ctrl+F Find
Ctrl+H Replace
F3 / Shift+F3 Find next/previous
Alt+Enter Select all matches
Ctrl+ D Select next match
Ctrl+K Ctrl+D Skip current selection
Alt+C / R / W Toggle case sensitivity/regex/whole word
multi-cursor and selection
Alt+Click Insert cursor
Ctrl+Alt+ ↑ / ↓ Insert cursor up/down
Ctrl+U Undo previous cursor
Shift+Alt+I Insert cursor at end of selected line
Ctrl+I Select current line
Ctrl+Shift+L Select all occurrences of the current selection
Ctrl+F2 Select all occurrences of the current word
Shift+Alt+→ Expand selection
Shift+Alt+← Reduce selection
Shift+Alt + (drag mouse) Column (box) selection
Ctrl+ Shift+Alt + (arrow key) Column (box) selection
Ctrl+Shift+Alt +PgUp/PgDown Page up/down column (box) selection
Rich language editing
Ctrl+Space Open suggestion
Ctrl+Shift+Space Open parameter prompt
Tab Emmet Expand abbreviation
Shift+Alt+F Format document
Ctrl+K Ctrl+F Format selection
F12 Jump to definition
Alt+F12 Open window display definition
Ctrl+K F12 Open sidebar display definition
Ctrl+. Quick fix
Shift+F12 Display Quote
F2 Rename symbol
Ctrl+Shift+ . / , replace with next/previous value
Ctrl+K Ctrl+X Remove end-of-line spaces
Ctrl+KM Change text language
Edit management
Ctrl+F4, Ctrl+W Close edited file
Ctrl+ KF close folder
Ctrl+\ split editor window
Ctrl+ 1 / 2 / 3 Switch to first, second or third window
Ctrl+K Ctrl+ ←/→ Switch to previous/next window
Ctrl+Shift+PgUp /PgDown Move edited file left/right
Ctrl +K ← / → Move edit window left/right

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325987174&siteId=291194637