There are five combinations of VsCode shortcut keys (popular science)

There are five combinations of VsCode shortcut keys (popular science)

Ctrl + Shift + ? : This kind of conventional combination button
Ctrl + V Ctrl + V : Combination that depends on one key at the same time
Shift + V c : Combination first and then single-key input
Ctrl + Click : Keyboard + Mouse Click
Ctrl + DragMouse : Keyboard + Mouse Drag
Universal Shortcuts

Shortcuts function
Ctrl+Shift+P, F1 Show the global command panel
Ctrl+P Quickly open the recently opened file
Ctrl+Shift+N Open a new editor Window
Ctrl+Shift+W Close editor
Basic editing

Shortcuts
Ctrl + X Cut
Ctrl + C Copy
Alt + up/down Move line up and down
Shift + Alt up/down Copy current line up and down the current line
Ctrl + Shift + K Delete Line
Ctrl + Enter Insert a new line below the current line
Ctrl + Shift + Enter Insert a new line above the current line
Ctrl + Shift + | Match the closing of curly braces, jump
Ctrl + ] / [ Line indent
Home Cursor jump Go to the beginning of the line
End The cursor jumps to the end of the line
Ctrl + Home Jump to header
Ctrl + End Jump to footer
Ctrl + up/down Line view offset
Alt + PgUp/PgDown Screen view offset
Ctrl + Shift + [ Collapse area code
Ctrl + Shift + ] Expand Area Code
Ctrl + K Ctrl + [ Collapse all subarea codes
Ctrl + k Ctrl + ] Expand all collapsed sub area codes
Ctrl + K Ctrl + 0 Collapse all area codes
Ctrl + K Ctrl + J Expand all collapsed area codes
Ctrl + K Ctrl + C Add line comment
Ctrl + K Ctrl + U Delete line comment
Ctrl + / Add close line comment
Shift + Alt +A Block area comment
Alt + Z Add close word contains
Navigation

Shortcuts
Ctrl + T List all symbols
Ctrl + G Jump to line
Ctrl + P Jump to file
Ctrl + Shift + O Jump to symbol
Ctrl + Shift + M Open problem display panel
F8 Jump to next error or warning
Shift + F8 Jump to previous error or warning
Ctrl + Shift + Tab Switch to the most recently opened file
Alt + left / right Backward, forward
Ctrl + M Enter with Tab to move the focus
Search and Replace

Shortcuts
Ctrl + F Search
Ctrl + H Replace
F3 / Shift + F3 Search Next/Previous
Alt + Enter Select all occurrences of
Ctrl + D in the query Match the currently selected word or line, select it again - actionable
Ctrl + K Ctrl + D Move the current selection to the position of the next matching selection (cursor selection) (fixed)
Alt + C / R / W
Multi-line cursor operation on selection

Shortcut key function
Alt + Click Insert cursor - support multiple
Ctrl + Alt + up/down Insert cursor up and down - support multiple
Ctrl + U Undo the last cursor operation
Shift + Alt + I Insert the cursor to all line terminators in the selected range
Ctrl + I Select the current line
Ctrl + Shift + L Select all lines that appear in the current selection - operation
Ctrl + F2 Select all words appearing in the current selection - operation
Shift + Alt + right Expand the selection from the cursor
Shift + Alt + left Shrink the selection
Shift + Alt + (drag mouse) The mouse drags the area and inserts the cursor at the end of multiple lines at the same time
Ctrl + Shift + Alt + (Arrow Key) is also the [arrow key control] for inserting the cursor of multiple lines
Ctrl + Shift + Alt + PgUp /PgDown is also a multi-line cursor [effective on the whole screen]
Rich language operations

Shortcut function
Ctrl + Space Input suggestion [Intelligent prompt]
Ctrl + Shift + Space parameter prompt
Tab Emmet command trigger/indent
Shift + Alt + F format Code
Ctrl + K Ctrl + F Format selected part of code
F12 Jump to definition
Alt + F12 Code snippet shows definition
Ctrl + K F12 Open definition in other window
Ctrl + . Quick fixes section can fix syntax errors
Shift + F12 Show all references
F2 Rename symbols
Ctrl + Shift + . / , replace next value
Ctrl + K Ctrl + X Remove whitespace characters
Ctrl + KM Change page document format
Editor management

Shortcut keys
Ctrl + F4, Ctrl + W Close editing Ctrl + k F to
close the currently open folder
Ctrl + | Cut editing window
Ctrl + 1/2/3 Switch focus in different cutting windows
Ctrl + K Ctrl <-/-> Switch focus in different cutting windows
Ctrl + Shift + PgUp/PgDown Switch tab position
Ctrl + K <-/-> Cut window position swap
File management

Shortcut function
Ctrl + N New file
Ctrl + O Open file
Ctrl + S Save file
Ctrl + Shift + S Save as
Ctrl + KS Save all currently opened files
Ctrl + F4 Close the current editing window
Ctrl + K Ctrl + W Close all editing windows
Ctrl + Shift + T Undo the most recently closed file editing window
Ctrl + K Enter Keep it open
Ctrl + Shift + Tab Bring up the list of recently opened files, press repeatedly to switch
Ctrl + Tab is the same as the above, the order is inconsistent
Ctrl + KP Copy the storage path of the currently opened file
Ctrl + KR Open the storage location of the currently edited file [File Manager]
Ctrl + KO Open the currently edited file in a new editor
Display

shortcut key
Use F11 to switch to full screen mode
Shift + Alt + 1 Toggle edit layout [currently inactive]
Ctrl + =/- Zoom in/out
Ctrl + B Show and hide sidebar
Ctrl + Shift + E Toggle focus between resource view and editing view
Ctrl + Shift + F Open global search
Ctrl + Shift + G Open Git Visual Management
Ctrl + Shift + D Open DeBug Panel
Ctrl + Shift + X Open Plugin Market Panel
Ctrl + Shift + H Replace Query Replace in Current File
Ctrl + Shift + J Open Detailed Query
Ctrl + Shift + V Preview the Markdown file [after compiling]
Ctrl + K v Open the rendered view in the sidebar [New]
Debug

Shortcut key
F9 Add and release breakpoints
F5 Start debugging, continue
F11 / Shift + F11 Step in / Step out of
F10 Step Skip
Ctrl + K Ctrl + I Show hover
Integrated terminal

Shortcuts
Ctrl + ` Open integrated terminal
Ctrl + Shift + ` Create a new terminal
Ctrl + Shift + C Copy selected
Ctrl + Shift + V Copy to the currently active terminal
Shift + PgUp / PgDown Page up and down
Ctrl + Home / End Scroll to the head or end of the page

Guess you like

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