Home > Article > Backend Development > Sublime Text shortcut keys
Reprinted from http://blog.sina.com.cn/s/blog_73c5cfbe0101ldj8.html
Choose category
Ct rl+D selects the cursor occupied text, continuing the operation will select the next identical text.
Alt+F3 Select text and press the shortcut key to select all the same text at once for editing at the same time. For example: quickly select and change all the same variable names, function names, etc.
Ctrl+L selects the entire line. If you continue to operate, you will continue to select the next line. The effect is the same as Shift+↓.
Ctrl+Shift+L First select multiple lines, then press the shortcut key, the cursor will be inserted at the end of each line, and you can edit these lines at the same time.
Ctrl+Shift+M Select the content inside the brackets (continue selecting the parent bracket). For example: quickly select to delete the code in the function, rewrite the function body code or rewrite the content inside the brackets.
Ctrl+M Move the cursor to the end or beginning position within 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 downwards.
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, you can quickly insert a line upwards.
Ctrl+Shift+[ Select the code, 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+← Move the cursor unitarily to the left and move the cursor quickly.
Ctrl+→ Move the cursor unitarily to the right and move the cursor quickly.
shift+↑ Select multiple lines upward.
shift+↓ Select multiple lines downwards.
Shift+← Select text to the left.
Shift+→ Select text to the right.
Ctrl+Shift+← Select text unitarily to the left.
Ctrl+Shift+→ Select text unitarily to the right.
Ctrl+Shift+↑ Swap the line where the cursor is with the previous line of code (insert the line where the cursor is before the previous line).
Ctrl+Shift+↓ Swap the line where the cursor is and the next line of code (insert the line where the cursor is after the next line).
Ctrl+Alt+↑ Add multi-line cursor upward to edit multiple lines at the same time.
Ctrl+Alt+↓ Add multi-line cursor downwards to edit multiple lines at the same time.
Edit class
Ctrl+J Merge selected lines of code into one line. For example: merge CSS properties in multi-line format into one line.
Ctrl+Shift+D Copy the entire line where the cursor is and insert it into the next line.
Tab indent to the right.
Shift+Tab Indent left.
Ctrl+K+K deletes code from the cursor to the end of the line.
Ctrl+Shift+K deletes the entire line.
Ctrl+/ comment single line.
Ctrl+Shift+/ Comment multiple lines.
Ctrl+K+U Convert to uppercase.
Ctrl+K+L Convert to lowercase.
Ctrl+Z Undo.
Ctrl+Y Undo Undo.
Ctrl+U soft undo, feels the same as Gtrl+Z.
Ctrl+F2 Set bookmarks
Ctrl+T Swap left and right letters.
F6 Word Detection Spelling
Search Category
Ctrl+F Open the bottom search box and search for keywords.
Ctrl+shift+F Search within a folder. The difference from ordinary editors is that sublime allows you to add multiple folders for search. It is slightly advanced and has not been studied yet.
Ctrl+P opens the search box. For example: 1. Enter the file name in the current project to quickly search the file. 2. Enter @ and keywords to find the function name in the file. 3. Enter: and a number to jump to the line of code in the file. 4. Enter # and keywords to find variable names.
Ctrl+G opens the search box, automatically with:, enter the number to jump to the line of code. For example: quickly locate files with long page codes.
Ctrl+R Open the search box, automatically add @, enter keywords to find the function name in the file. For example: quickly search for a function on a page with many functions.
Ctrl+: Open the search box, automatically add #, enter keywords, and search for variable names, attribute names, etc. in the file.
Ctrl+Shift+P opens the command box. Scenario example: Open the naming box, enter keywords, and call the function of sublime text or plug-in, such as using package to install the plug-in.
Esc exits cursor multi-line selection, exits search box, command box, etc.
Display class
Ctrl+Tab switches the tabs of the current window in the order in which the files have been browsed.
Ctrl+PageDown switches the tabs of the current window to the left.
Ctrl+PageUp switches the tabs of the current window to the right.
Alt+Shift+1 window split screen, restore the default 1 screen (non-keypad 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 Equally divided into 4 screens
Alt+Shift+8 Vertical split screen - 2 screens
Alt+Shift+9 Vertical split screen - 3 screens
Ctrl+K+B opens/closes the sidebar.
F11 full screen mode
Shift+F11 do not disturb mode
The above has introduced the Sublime Text shortcut keys, including related content. I hope it will be helpful to friends who are interested in PHP tutorials.