Sublime Text3 shortcut key summary

Time:2020-9-19

Sublime text 3 is very practical, but if you want to use it well, some shortcut keys are indispensable, so I changed this shortcut key summary.

I’m used to VIM, and I don’t want to use some shortcut keys, especially under win. There is also a graphical interface. So I think the most useful one is the search class, which is very practical for reading and modifying code.

Select class

  • CTRL + D selects the text occupied by the cursor. If you continue, the next same text will be selected.
  • Alt + F3 select the text and press the shortcut key to select all the same text for editing at the same time. For example: quickly select and change all the same variable names, function names, etc.
  • CTRL + L selects the whole line, and continues to select the next line. The effect is the same as shift + ↓.
  • CTRL + Shift + l first select multiple lines, and then press the shortcut key. The cursor will be inserted at the end of each line to edit these lines at the same time.
  • CTRL + Shift + m selects the contents within the brackets (continue to select the parent brackets). For example: quickly select Delete function code, rewrite function body code, or rewrite content in brackets.
  • CTRL + m move the cursor to the end or start position within brackets.
  • CTRL + enter inserts a new row on the next line. Take a chestnut: you can quickly insert a line down even if the cursor is not at the end of the line.
  • CTRL + Shift + enter inserts a new line on the previous line. Take a chestnut: you can quickly insert a line up 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 expands all collapsed code.
  • CTRL + ← move the cursor unitedly to the left and quickly move the cursor.
  • Move the cursor unitedly to the right and move the cursor quickly.
  • Shift + ↑ select multiple rows up.
  • Shift + ↓ select multiple rows down.
  • Shift + ← select text to the left.
  • Shift + → select the text to the right.
  • CTRL + Shift + ← select text unitedly to the left.
  • Select text unitedly to the right.
  • CTRL + Shift + ↑ swap the cursor line with the previous line 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).
  • You can edit multiple lines at the same time by adding a multi line cursor up.
  • CTRL + Alt + ↓ add multi line cursor down to edit multiple lines at the same time.

Editing class

  • CTRL + J merges the selected multiple lines of code into one line. Take chestnuts: merge CSS properties of multiline format into one line.
  • CTRL + Shift + D copies the entire line of the cursor and inserts it into the next line.
  • Tab indents right.
  • Shift + Tab indents left.
  • CTRL + K + K starts at the cursor and deletes the code to the end of the line.
  • CTRL + Shift + K to delete the entire line.
  • CTRL + / comment line.
  • CTRL + Shift + / comment multiline.
  • CTRL + K + U converts uppercase.
  • CTRL + K + L converts lowercase.
  • CTRL + Z undo.
  • CTRL + y restores undo.
  • CTRL + U soft undo, feel the same as gtrl + Z.
  • CTRL + F2 set bookmark
  • The left and right letters of Ctrl + T are interchanged.
  • F6 word detection spelling

Search class

  • CTRL + F opens the bottom search box to find keywords.
  • CTRL + Shift + F searches in the folder. Different from the ordinary editor, sublime allows you to add multiple folders for searching, which is slightly high-end and not studied.
  • CTRL + P opens the search box. For example: 1. Input the file name in the current project to search the file quickly; 2. Input @ and keyword to find the function name in the file; 3. Input: and number to jump to the line code in the file; 4. Input ා and keyword to find the variable name.
  • CTRL + G to open the search box, automatically with: enter a number to jump to this line of code. Take chestnuts: quickly locate in files with long page code.
  • CTRL + R open the search box, automatically with @, enter keywords, find the function name in the file. Take a chestnut: find a function quickly on a page with many functions.
  • CTRL +: open the search box, and automatically bring in the “ා”, enter keywords, and find the variable name and attribute name in the file.
  • CTRL + Shift + P opens the command box. Scene Chestnut: open the naming box, enter keywords, call sublime text or plug-in functions, such as using package to install plug-ins.
  • ESC exits cursor, multi line selection, search box, command box, etc.

Display class

  • CTRL + tab switches the tabs of the current window in the order in which the file has been browsed.
  • CTRL + pagedown toggles the tab of the current window to the left.
  • CTRL + pageup switches the tab of the current window to the right.
  • Alt + Shift + 1 window split screen, restore default 1 screen (non keyboard number)
  • 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 split 4 screens
  • Alt + Shift + 8 vertical split-2 screen
  • Alt + Shift + 9 vertical split-3 screen
  • CTRL + K + B turns the sidebar on / off.
  • F11 full screen mode
  • Shift + F11 undisturbed mode

This article about sublime Text3 shortcut key summary article introduced here, more related sublime Text3 shortcut key content, please search the previous articles of developeppaer or continue to browse the related articles below, I hope you can support developeppaer more in the future!