1. Required shortcut keys

  • Ctrl+/ : Comments the current line
  • Ctrl+Shift+/ : Insert comment at current position
  • Ctrl+Alt+/ : block comments, and Focus on the first line, write comments to use
  • Ctrl+Shift+A: Select before and after the current label to modify the label
  • F11: full screen
  • Shift+F11: In full screen DND mode, only the current file is edited
  • Alt+F3: Select all the same words
  • Alt+. : closes the label
  • Alt+Shift+ Digit: Split screen display
  • Alt+ number: Toggle open the NTH file
  • Shift+ right-click drag: The cursor is used to change or insert column contents
  • The forward and back keys of the mouse can switch Tab files
  • Press Ctrl, click or select in turn, you can edit multiple positions
  • Press Ctrl+Shift+ up or down to replace rows
  • Ctrl+Shift+P: Open the command panel
  • Ctrl+P: Search for files in the project
  • Ctrl+G: Jump to what line
  • Ctrl+W: Close the currently open file
  • Ctrl+Shift+W: Close all open files
  • Ctrl+Shift+V: Paste and format
  • Ctrl+D: Select a word, repeat to increase the selection of the next same word
  • Ctrl+L: Select a row. Repeat to select the next row
  • Ctrl+Shift+L: Select multiple lines
  • Ctrl+Shift+Enter: Inserts a new line before the current line
  • Ctrl+X: Delete the current line
  • Ctrl+M: Jump to corresponding brackets
  • Ctrl+U: Soft Undo: Undoes the cursor position
  • Ctrl+J: Select the label content
  • Ctrl+F: Find content
  • Ctrl+Shift+F: Find and replace
  • Ctrl + H: replacement
  • Ctrl+R: Go to Method
  • Ctrl+N: Create a window
  • Ctrl+K+B: Switch sidebar
  • Ctrl+Shift+M: Select the current parenthesis, repeating the parenthesis itself
  • Ctrl+F2: Set/remove the tag

2. Select class shortcut keys

  • 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+↑ Swap the cursor line with the previous line (insert the cursor line before the previous line)
  • Ctrl+Shift+↓ Swap the line where the cursor is and the next line of code (insert the 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
  • 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

3. Edit shortcut keys

  • 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+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+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

4. Search shortcut keys

  • 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

5. Display class shortcut keys

  • Alt+Shift+1 Window split screen, restore default 1 screen (non-keypad number)
  • Alt+Shift+2 Split screen -2 columns
  • Alt+Shift+3 Split screen -3 columns
  • Alt+Shift+4 Split screen -4 columns
  • Alt+Shift+5 evenly split 4 screens
  • Alt+Shift+8 Vertical split screen -2 screen
  • Alt+Shift+9 Vertical split screen -3 screen
  • Or right-click the open TAB and choose Split vertically or horizontally
  • Ctrl+K+B toggles/closes the sidebar
  • F11 Full screen mode
  • Shift+F11 DND mode
  • Ctrl+Tab Toggles the tabs of the current window in the order that the files are browsed
  • Ctrl+PageDown Toggles the TAB page of the current window left
  • Ctrl+PageUp Toggles the tabs of the current window to the right