Sublime Text 3 is a great software that not only has incredible built-in functionality (multi-line editing and Vim mode), but also supports plugins, snippets, and many other things.
Today, let's summarize the shortcut keys for Sublime Text 3, as described in the following list:
Select class:
- CTRL + D (multi-line editing): Select the text that the cursor occupies, and press CTRL + D consecutively to select multiple identical text.
- ALT + F3: Select all the same words.
- Ctrl + L (full row selected): The entire row is selected, and the next full row is selected, and the effect is the same as shift +↓.
- Ctrl + Shift + L: Select multiple rows First, and then press the shortcut key to insert the cursor at the end of each line to edit the rows at the same time.
- Shift +↑: Select multiple rows upwards.
- Shift +↓: Select multiple rows down.
- Shift +←: Select text to the left
- Shift +→: Select text to the right
- Ctrl +←: Move the cursor to the left to move the cursor quickly.
- Ctrl +→: Move the cursor to the right of the unit to move the cursor quickly.
- Ctrl + Alt +↑: Add a multiline cursor up and edit multiple lines at the same time.
- CRL + Alt +↓: Adds a multiline cursor down to edit multiple lines at the same time.
- Ctrl + Shift +←: Select text to the left of the unit
- Ctrl + Shift +→: Select text to the right of the unit
- Ctrl + Shift +↑: Swaps the cursor at the line and previous lines
- Ctrl + Shift +↓: Swaps the row of the cursor with the next line of code
- Ctrl + M: Jumps to the corresponding parentheses.
- Ctrl + Shift + M: Check the contents of the current parenthesis and repeat to check the parentheses themselves.
- Ctrl + click (multi-line editing): Clicking each place you want to edit will create a cursor.
Edit class:
- Ctrl + J: Merge the selected lines of code into one line.
- Alt +.: Closed Label
- Ctrl + Shift + D: Copies the entire line of the cursor and inserts it into the next row.
- Tab: Indent Right
- Shift + Tab: Indents to the left.
- Ctrl + k + K: Removes code from the cursor at the end of the line.
- Ctrl + Shift + K: Deletes the entire row.
- Ctrl +/: Comment When moving forward
- Ctrl + Shift +/: Inserts comments at the current position, commenting on multiple lines.
- Ctrl + Alt +/: block comments, and focus to the first line, write the comment instructions.
- Ctrl + K + U: Convert uppercase.
- Ctrl + K + L: Convert lowercase.
- Ctrl + Z: Undo.
- Ctrl + Y: Restore Undo.
- Ctrl + U: Soft undo, feel like Ctrl + Z.
- Ctrl + F2: Set/Remove tags.
- Ctrl + T: Swap the letters around.
- F6: Word detection spelling
Search for class:
- Ctrl + F: Find content.
- Ctrl + Shift + F: Find and replace.
- Ctrl + H: Replace.
- Ctrl + P (file Toggle): This shortcut can quickly open a new file. Just press CTRL + P and enter the name of the file you want to open, and press ENTER to open the file you want.
- Ctrl + G: Jumps to the first line.
- CTRL + R (Jump tags): When you edit a large file, there are a lot of methods in the file, press CTRL + R to list them all, making them easier to find.
- CTRL +:: Open the Search box, automatically with #, enter keywords, find variable names in the file, attribute names, and so on.
- Ctrl + Shift + P (command Panel): command Panel allows you to access all things in the Settings menu, call package commands, change file syntax, process sublime items, and more.
- ESC: Exit the cursor multi-line selection, exit the search box, command box, and so on.
Display class
- Ctrl + TAB: Toggles the tab of the current window by the order in which the files are browsed.
- Ctrl + PageDown: Toggles the tab of the current window to the left.
- Ctrl + PageUp: Toggles the tab of the current window to the right.
- Alt + Shift + Number: Split screen display
- Alt + Shift + 1: Window split screen, restore default 1 screen (number not keypad)
- Alt + Shift + 2: Left/Right split screen-2 columns
- Alt + Shift + 3: Left/Right split screen-3 columns
- Alt + Shift + 4: Left/Right split screen-4 columns
- Alt + Shift + 5: equal to 4 screens
- Alt + Shift + 8: Vertical split screen-2 screen
- Alt + Shift + 9: Vertical split Screen-3 screen
- Ctrl + K + B: Toggle Sidebar on/off.
- F11 Full Screen mode
- Shift + F11: intrusion-free mode
Other classes:
- Ctrl + Enter: Inserts a new line in the next line.
- Ctrl + Shift + Enter: Inserts a new line on the previous line.
- Ctrl + Shift + [: Check the Code, press the shortcut key, collapse the code
- Ctrl + Shift +]: Select the code, press the shortcut key, expand the code
- Ctrl + K + 0: Expand all collapsed Codes
- Ctrl + N: Creates a new file.
- Ctrl + Shift + N: Opens a new sublime.
- Ctrl + W: Closes the currently open file.
- Ctrl + Shift + W: Closes all open files.
- Ctrl + Shift + A: Select the current label before and after the change
- Sift + F11: fullscreen free, edit current file only
- ALT + Number: Toggle to open nth file
Sublime shortcut keys for Text 3