As the saying goes, do good in advance, do good in advance. In order to be efficient when we write requirements, we need to be logical and have a weapon to weigh like in battle. ⌘ to convert to Ctrl, ⌥ to Alt, ⌃ to window by default.
Main command box
F1 or ⌘ + ⇧ + P: Open the command palette. In the open input box, you can enter any command, but without further ado, as shown below:
Such as:
Press Backspace to enter Command +P mode. Type > under Command +P to enter Command + Shift +P. To ⌘+P window, you can directly enter the file name to jump to the fileCopy the code
Enter “? “in Command + P mode. A drop-down menu will pop up, as shown below:
Common ones are as follows:
? List the current actions that can be performed! Display Errors or Warnings, or Command + Shift + M: To jump to the number of lines, you can either Command + G to jump directly to @ to jump to symbol (search variables or functions), or you can Command + Shift + O to jump directly to @ to jump to symbol (search variables or functions). We can also Command + Shift + O and type ":" into # to find symbol by name, or we can Command + TCopy the code
2. Universal shortcut keys
⌘ +, // Open the user Settings panel
⌘ + W // Close the window
⌘ + K ⌘ + S // Open the shortcut palette
3. Basic editing shortcut keys
⌘ + C // Copies the current row
⌘ + X // Shear current line
⇧ + ⌘ + K // Delete the current row
⇧ + ⌘ + \ // Jump to the bracket enclosing the nearest to the current cursor
⇧ + ⌥ + A // block comments
⌘ + // line comment
⌘ +] / ⌘ + [// ⌘ to indent or bomb to move
⌘ + ↑ / ⌘ + ↓ // Move the cursor to the top or bottom of the page
Home/End (fn + ←)/(fn + →)
// The cursor goes to the beginning/end of the line
⌥ + ⌘ + [/ ⌥ + ⌘ +]
// Expand or collapse the area where the cursor is located.
⌃PgUp / ⌃PgDn (⌃+ fn+↓ / ⌃+fn+↑)
// Slide up and down the row dimension.
⌘+PgUp /⌘+PgDn(⌘ + fn + ↑ /⌘+ fn + ↓)
// Slide by page dimension
⌥ + ↓ / ⌥ + ↑
// Move the current row up or down
⇧ + ⌥ + ↓ / ⇧ + ⌥ + ↑
// Copy the current line and paste it up or down
⌘ + Enter / ⇧ + ⌘ + Enter
// Insert a row up or down
4. Multiple cursor and selection
⌥ + click // Insert multi-cursor (this incense)
⌘ + U // Move the cursor to the nearest TODO
⇧ + ⌘ + L // ⌘ to all the same code currently selected (incense)
⌘ + F2 // This seems to be the same use as above
⇧+⌥+⌘+↑ / ↓ // Insert multiple cursors up and down
⌥ + ⌘ + ↑ / ⌥ + ⌘ + ↓ // Move the cursor up and down
⌃ + ⇧ + ⌘ + → / ←
// Expand or narrow the current cursor selection
⇧ + ⌥ + drag mouse
// Column selector (default multi-row selection starts from the first column)
Search for substitution
⌘+ D // Selecting an identical option to ⇧+⌘+L will be more useful
⌘ + F // Search
⌥ + ⌘ + F // replace
⌘+K + ⌘+D // Move to the next matching option
⌘ + G / ⇧ + ⌘ + G // To search down/up
Rich language editing
⌃ + Space // Switch the input method
⌥ + F12 // Open a window to display the definition
⌘+ K F12 // Open the sidebar to show the definition
⌘+K ⌘+X // Clears the space of the current row
F2 // Change the names of all variable definitions and references in the file (not too cool)
Navigation seven.
⌘ + T // Searches to show all variables
⌃ + G // Jump to a line
⌘ + P // Open the file
⇧ + ⌘ + O // Jump to the specified object
F8 / ⇧ + F8 // jump to next/previous error
⇧ + ⌘ + M // Open the questions panel
⇧ + ⌘ + [// Open the last edit window
⌃ + ⇧ + Tab / ⌃ + Tab
// Open the recently edited file
Viii. Editorial management
⌘ + K F // Close the folder
⌘ + \ // Split editor
⌘ + 1 / ⌘ + 2 / ⌘ + 3….
// go to edit page 1,2,3 respectively
⌘ + K ← / ⌘ + K →
// Move the active window left and right
Ix. Document management
⌘+N // Create a new file
⌘+O // Open the file
⌘+S // Save (can be set to format code after save)
⌥+⌘+S // Save all
⌘ + ⇧ + W// Close the editor
⌘+K ⌘+W // Close all edit Windows
⇧+⌘+T // Resume the closed window
⌘+K P // Path to the current file to copy
⌘+K R // Open the current file in the local folder
⌘+K O // Open the current file in a new editor
Ten. Show
⌃ + ⌘ + F // Control editor full screen display
⌥ + ⌘ + 0 // Controls whether Windows are displayed vertically or horizontally when more Windows are allowed
⌘ + = / ⌘ + – // ⌘ to zoom in and out of the edit window
⌘ + B // Controls the left explorer presentation
⇧ + ⌘ + E // Control input toggle to English mode
⇧ + ⌘ + F // Global search
⇧ + ⌘ + G // Open the leftmost menu to source control
⇧ + ⌘ + D // Open the debug menu to the left
⇧ + ⌘ + X // Open the leftmost menu extension
⇧ + ⌘ + H // Global substitution
⇧ + ⌘ + U // Open the output panel
⌘ + K Z // Zen (focus) mode,(press Double Esc to exit)
⌘ + K ⌘ + T // Toggle the theme
Xi. Debugging
F5 // Start debugging
F10 // Next step
⇧ + F5 // End debugging
Xii. Integrated terminal
⌃ + ‘// Control terminal display
⌃ + ⇧ + ‘// Create a terminal
When you don’t know these shortcuts, you feel weak,
When you know these shortcuts, it’s like you’re sprinting.