Select classCTRL + d select the text occupied by the cursor. Continue to select the next identical text. Alt + F3 select text 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 and function names. CTRL + l select the entire row, and continue to select the next row. The effect is the same as that of Shift + continue. CTRL + Shift + l select multiple rows first, and then press the shortcut key to insert the cursor at the end of each row to edit these rows at the same time. CTRL + Shift + M select the content in the brackets (continue to select the parent Parenthesis ). For example, you can quickly select the code in the delete function, rewrite the function body code, or rewrite the content in the brackets. CTRL + M move the cursor to the end or start position in the brackets. CTRL + enter Insert a new line in the next line. For example, you can insert a row down quickly even if the cursor is not at the end of the row. CTRL + Shift + enter Insert a new row in the previous row. For example, you can insert a row up quickly even if the cursor is not at the beginning of the line. 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 show all folding code. CTRL + ← move the cursor to the left unit to quickly move the cursor. CTRL + → move the cursor to the right unit to quickly move the cursor. Shift + rotate select multiple rows from the upper menu. Shift + backward select multiple rows. Shift + cursor select text to the left. Shift + → select text to the right. CTRL + Shift + ← select the text to the left unit. CTRL + Shift + → select text to the right in unit. CTRL + Shift + ← swap the line where the cursor is located with the code of the previous line (insert the line where the cursor is located before the previous line ). CTRL + Shift + ← swap the code between the row where the cursor is located and the next line (insert the row where the cursor is located to the next line ). CTRL + ALT + ↓ Add a multi-row cursor up to edit multiple rows at the same time. CTRL + ALT + ↓ add multiple rows of cursor down to edit multiple rows at the same time.
EditingCTRL + J merge the selected multiple lines of code into one line. For example, combine the CSS attributes in multi-row format into one row. CTRL + Shift + D copy the entire row where the cursor is located and insert it to the next row. Tab is indented to the right. Shift + TAB indent to the left. CTRL + K + k Delete the code from the cursor to the end of the line. CTRL + Shift + k Delete the entire row. CTRL +/comment a single row. CTRL + Shift +/comment multiple rows. CTRL + K + u converts uppercase letters. CTRL + K + L converts lowercase letters. CTRL + z undo. CTRL + y resume undo. CTRL + u soft undo, feel the same as gtrl + Z. CTRL + F2 set the bookmarks Ctrl + T and the left and right letters are exchanged. F6 spelling
SearchCTRL + F open the bottom search box and search for keywords. CTRL + Shift + F search in folders. Unlike the normal Editor, sublime allows you to add Multiple folders for search, which is slightly high-end and not researched. CTRL + P open the search box. Example: 1. enter the name of the file in the current project, and quickly search for the file. 2. Enter @ and keyword to search for the number of letters in the file. 3. Enter: and number, jump to the line of code in the file. 4. Enter # and keyword to find the variable name. CTRL + G open the search box and automatically bring:. Enter a number to jump to this line of code. For example, you can quickly locate the problem in a file with long Page code. CTRL + R open the search box, automatically add @, enter the keyword, and find the function name in the file. For example, you can quickly search for a function on pages with many functions. CTRL +: Open the search box, automatically include #, enter the keyword, and find the variable name and attribute name in the file. CTRL + Shift + P open the command box. Scenario: Open the Name box and enter a keyword to call the sublime text or plug-in function. For example, use package to install the plug-in. ESC exit the cursor multiple lines selection, exit the search box, command box, and so on. The display class Ctrl + TAB switches the tabs of the current window according to the browsing order of the files. CTRL + Pagedown switch the tab of the current window to the left. CTRL + Pageup switch the tab of the current window to the right. Alt + Shift + 1 window split, Restore Default 1 screen (non-keypad number) 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 equals four-screen Alt + shift + 8 Vertical Split screen-2 screen Alt + Shift + 9 Vertical Split screen-3 screen Ctrl + K + B enable/disable sidebar. F11 full screen Mode Shift + F11 Do Not Disturb Mode turn: http://blog.sina.com.cn/s/blog_73c5cfbe0101ldj8.html
Sublime Text 3 shortcut key summary