Sublime Text 3 common Mac shortcuts and precautions, sublimemac
The shortcut keys that are easy to forget in most cases are sorted here.
Edit shortcut key:
Cmd + L: select a row (Repeat and press to add the next row to the Selection );
Cmd + D: select a word (multiple words are selected for multiple edits when the same word is repeatedly pressed );
Cmd + shift + D copy the entire row where the cursor is located and insert it to the next row
Control + shift + M: select the content of the brackets;
Cmd + shift + enter: Insert a new row before the current row;
Cmd + enter: Insert a new row after the current row;
Control + shift + K: delete a row;
Cmd + KK: Delete the cursor from the cursor to the end of the row;
Cmd + K + delete: delete the cursor from the cursor to the beginning of the row;
Cmd + K + U: changed to uppercase;
Cmd + K + L: changed to lower case;
Cmd + z: Undo;
Cmd + Y: Restore and undo;
Cmd +]: indent to the right;
Cmd + [: Indent left;
Search and replace shortcuts:
Cmd + F: search;
Cmd + option + F: Find and replace;
Split Window/TAB shortcut:
Cmd + option + [1, 2, 4]: Single Column, double row, three columns, and four columns;
Cmd + option + 5: Grid (4 groups );
Control + [1, 2, 3, 4]: Move the focus to the corresponding group (split screen number );
Control + shift + [1, 2, 4]: Move the current file to the corresponding group (split screen number );
Cmd + [1, 2, 4]: select the corresponding tab;
Quick operation:
Cmd + control + up/down key: Switch location of two rows;
Cmd + K + B: Show/hide the side;
Cmd + J merge the selected multiple lines of code into one line
Cmd + G open the search box, automatically bring:, enter a number to jump to this line of code
FAQs and precautions:
~ Q: sublime text3 can only open one window. Once it is opened, the original one is closed. How can I open a file in the new tag?
~ A: Double-click and Click Preview file.