Every time to share, today to share the usual use of editing tools shortcut key bar
I. General
- ↑↓←→ : Move the cursor up, down, left and right to ensure that it is not KJHL!
- Alt: Bring up the menu
- Ctrl + Shift + P: Bring up the Command Palette
- Ctrl + ‘: Bring up the console
Second, choice class
- Ctrl+D selects the text occupied by the cursor. If you continue, the next text of the same type will be selected.
- Alt+F3 select the text and press the shortcut key to select all the same text at one time for simultaneous editing. For example: quickly select and change all the same variable names, function names, etc.
- Ctrl+L selects the entire row. If you continue to select the next row, the effect is the same as Shift+↓.
- Ctrl+Shift+L selects multiple lines and then presses the shortcut key to insert the cursor at the end of each line to edit them simultaneously.
- Ctrl+Shift+M selects the contents of the parentheses (continue selecting the parent parentheses). For example: quickly check to remove code from a function, rewrite the function body code, or rewrite the contents inside parentheses.
- Ctrl+M moves the cursor to the end or start position in parentheses.
- Ctrl+Enter inserts a new line on the next line. For example, you can quickly insert a line down even if the cursor is not at the end of the line.
- Ctrl+Shift+Enter inserts a new line on the previous line. For example, you can quickly insert a line up even if the cursor is not at the beginning of the line.
- Ctrl+Shift+[Select code, press shortcut key, collapse code.
- Ctrl+Shift+] select the code and press the shortcut key to expand the code.
- Ctrl+K+0 to expand all folding codes.
- Ctrl+← Moves the cursor unevenly to the left, moving the cursor quickly.
- Ctrl+→ Move the cursor unitary to the right, moving the cursor quickly.
- Shift +↑ Up select multiple rows.
- Shift +↓ Down select multiple rows.
- Shift+← Selects text to the left.
- Shift+→ Select text right.
- Ctrl+Shift+← selects the text unitary to the left.
- Ctrl+Shift+→ Select the text unitarily to the right.
- Ctrl+Shift+↑ Swaps the line where the cursor is and the previous line of code (insert the line where the cursor is before the previous line).
- Ctrl+Shift+↓ Interswitch the cursor line with the next line of code (insert the cursor line after the next line).
- Ctrl+Alt+↑ Add the cursor to edit multiple lines at the same time.
- Ctrl+Alt+↓ Add the cursor down to edit multiple lines at the same time.
Third, editing class
- Ctrl+J merges the selected multiple lines into one line. For example, merge multi-line CSS properties into one line.
- Ctrl+Shift+D copies the entire line where the cursor is and inserts it into the next line.
- Tab indents to the right.
- Shift+Tab indents to the left.
- Ctrl+K+K deletes code from the cursor to the end of the line.
- Ctrl+Shift+K delete the entire line.
- Ctrl+/ comment a single line.
- Ctrl+Shift+/ comment multiple lines.
- Ctrl+K+U converts uppercase.
- Ctrl+K+L converts to lowercase.
- Ctrl + Z.
- Ctrl+Y resumes undo.
- Ctrl+U soft Undo feels the same as Gtrl+Z.
- Ctrl+F2 sets bookmarks
- Ctrl+T left and right switch letters.
- F6 word spelling detection
Fourth, search class
- Ctrl+F opens the bottom search box to find the keyword.
- Ctrl+ Shift +F searches within folders, and sublime allows you to add multiple folders for searching, which is a bit more advanced and unexplored than normal editors.
- Ctrl+P opens the search box. For example: 1, enter the name of the file in the current project to quickly search the file, 2, enter @ and keyword to find the function name in the file, 3, enter: and number to jump to the line of code in the file, 4, enter # and keyword to find the variable name.
- Ctrl+G to open the search box, automatically with:, enter a number to jump to the line of code. For example: quickly locate files with long page code.
- Ctrl+R opens the search box with @ automatically, enter the keyword to find the function name in the file. For example: quickly find a function on a page with many functions.
- Ctrl+ : Open the search box, automatically with #, enter the keyword, find the variable name in the file, attribute name, etc.
- Ctrl+Shift+P opens the command box. Scenario Chestnut: Open the naming box, enter the keywords, and invoke sublime Text or plug-in functionality, such as installing the plug-in using package.
- Esc exit cursor multi-line selection, exit search box, command box, etc.
Five, the window
- Ctrl + Shift + N: Create a new window
- Ctrl + N: Creates a new TAB in the current window
- Ctrl + W: Close the current TAB. Close the window if there is no TAB in it
- Ctrl + Shift + T: Restores the label just closed
Six, screen,
- F11: Switch to normal full screen
- Shift + F11: Toggle full screen without interference
- Alt + Shift + 2: Split the screen
- Alt + Shift + 8: Split the screen up and down
- Alt + Shift + 5: Split the screen
- After the split screen, press Ctrl + Number to go to the specified screen, and press Ctrl + Shift + number to move the current screen to the specified screen