Sublime Shortcuts Summary

Sublime shortcut key summary:
Selection class
Ctrl+D selects the text occupied by the cursor, and continues to select the next same text.
Alt+F3 Select the text and press the shortcut key to select all the same text at one time for simultaneous editing. Example: Quickly select and change all the same variable names, function names, etc.
Ctrl+L selects the entire row, and continues to select the next row, the effect is the same as that of Shift+↓.
Ctrl+Shift+L Select multiple lines first, then press the shortcut key, the cursor will be inserted at the end of each line, and these lines can be edited at the same time.
Ctrl+Shift+M Selects content within brackets (continues to select parent bracket). For example: Quickly select and delete the code in the function, rewrite the function body code or rewrite the content in the parentheses.
Ctrl+M Moves the cursor to the end or start of the brackets.
Ctrl+Enter Inserts a new line on the next line. For example: even if the cursor is not at the end of the line, you can quickly insert a line down.
Ctrl+Shift+Enter Inserts a new line on the previous line. For example: even if the cursor is not at the beginning of the line, it can quickly insert a line up.
Ctrl+Shift+[ Select the code and press the shortcut key to collapse the code.
Ctrl+Shift+] Select the code and press the shortcut key to expand the code.
Ctrl+K+0 Expands all folded codes.
Ctrl+← Moves the cursor unitwise to the left, moving the cursor quickly.
Ctrl+→ Moves the cursor unitwise to the right, moving the cursor quickly.
shift+↑ Select multiple lines up.
shift+↓ Select multiple lines down.
Shift+← Select text to the left.
Shift+→ Select text to the right.
Ctrl+Shift+← Selects text uniformly to the left.
Ctrl+Shift+→ Select text uniformly to the right.
Ctrl+Shift+↑ Swap the cursor line with the previous line of code (insert the cursor line before the previous line).
Ctrl+Shift+↓ Swap the cursor line with the next line of code (insert the cursor line after the next line).
Ctrl+Alt+↑ Adds a multi-line cursor upward, which can edit multiple lines at the same time.
Ctrl+Alt+↓ Adds a multi-line cursor downward, and can edit multiple lines at the same time.


Editing class

Ctrl+J Combines selected multiple lines of code into one line. For example: combine CSS properties in multiple lines into one line.
Ctrl+Shift+D Copy the entire line where the cursor is and insert it into the next line.
Tab indents to the right.
Shift+Tab Indent left.
Ctrl+K+K Delete code from the cursor to the end of the line.
Ctrl+Shift+K Delete entire line.
Ctrl+/ Comments out a single line.
Ctrl+Shift+/ Comments multiple lines.
Ctrl+K+U Convert uppercase.
Ctrl+K+L Convert lowercase.
Ctrl+Z to undo.
Ctrl+Y Redo Undo.
Ctrl+U Soft Undo, feels the same as Gtrl+Z.
Ctrl+F2 Set bookmark
Ctrl+T Left and right letters are interchanged.
F6 word detection spelling


Search class

Ctrl+F Open the bottom search box to find keywords.
Ctrl+shift+F finds within a folder. The difference from ordinary editors is that sublime allows to add multiple folders for search, which is slightly high-end and not studied.
Ctrl+P Open the search box. For example: 1. Enter the file name in the current project, quickly search the file, 2. Enter @ and keywords to find the function name in the file, 3. Enter: and number, jump to the line of code in the file, 4. Enter # and a keyword to find variable names.
Ctrl+G opens 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, and find the function name in the file. For example: Quickly find a function on a page with many functions.
Ctrl+: Open the search box, with # automatically, enter keywords, and search for variable names, attribute names, etc. in the file.
Ctrl+Shift+P Opens the command box. Scenario chestnut: Open the naming box, enter a keyword, and invoke the functions of sublime text or plugins, such as using package to install plugins.
Esc Exit cursor multi-line selection, exit search box, command box, etc.


Display class

Ctrl+Tab Switches the tabs of the current window in the order in which the files were browsed.
Ctrl+PageDown Switch the tab page of the current window to the left.
Ctrl+PageUp Switches the tab page of the current window to the right.
Alt+Shift+1 Window split screen, restore default 1 screen (non-keyboard numbers)
Alt+Shift+2 Left and right split screen-2 columns
Alt+Shift+3 Left and right split screen-3 columns
Alt+Shift+4 Left and right split screen -4 columns
Alt+Shift+5 Divide 4 screens equally
Alt+Shift+8 Vertical split-2 screens
Alt+Shift+9 Vertical split-3 screens
Ctrl+K+B Turn on/off the sidebar.
F11 Full screen mode
Shift+F11 Do not disturb mode

Guess you like

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