|
Here is my video tutorial by the Internet or text information to learn some practical functions and shortcut keys used Sublime Text 3 collected, and now share it, if there are other useful features in the comments below, in order to learn from each other.
PS: ST3 shortcuts in Mac OX difference with Windows a lot of different platforms. Here is the explanation for the windows platform.
1. You can directly open image
Version 3 has a good feature (for the front end of it): can be opened directly in ST3 pictures.
2. Goto Anything function - to quickly find (ctrl + P)
@ + Enter function name you can quickly find function.
Enter # + Text can quickly match the text in the document.
3. Multi-line cursor function (ctrl + D, very practical)
How to change a word in a document to another?
Method 1: Use the Find and Replace function: ctrl + H
Method 2 (recommended): multi-line cursor function, select one, press ctrl + D can also select another, while more than another cursor.
However, multi-line cursor to complete the search and replace function can not be done.
For example, in the back some qualifying statement to add a new line, while adding some new text, how to quickly achieve this goal?
- You can select a particular pattern, then ctrl + D to select another, if some do not want to add a new line pattern press ctrl + K, ctrl + D to skip this into the next qualifying mode line.
- You can also press Alt + F3 keyboard shortcut select all the qualifying word, generating a plurality of cursor instead of one ctrl + D selected.
- If you want to join every row in the cursor, you can ctrl + A then ctrl + shift + L can.
- If you want multiple rows behind a character plus the cursor, the cursor can be placed behind this character, hold down the shift key and right-drag the cursor down to produce a plurality.
4. Command Mode (should be used whenever possible, but do not waste a lot of shortcuts brain cell memory command)
For example, use ctrl + N to create a new file, the default is plain text, no syntax highlighting, syntax how to set up mode?
- You can select the desired set of grammatical syntax mode selection area by the lower right corner.
- There is another better way, using ctrl + shift + P Open a command mode, and then enter the set syntax [language] is set to a language syntax mode, such as it is set to set syntax java java syntax highlighting.
- St3 support fuzzy matching, you can also enter the syntax java or ssjava.
- If the current mode is already the grammar of a language, you can enter other languages switch (instead of entering the set syntax or syntax), for example, of course, for the java syntax mode, you can switch directly into js soon as javascript syntax mode .
You can also enter minimap hide or show the right of the minimap microcosm
5. Quick Jump to a row
Press Ctrl + G, enter the line number, you can quickly jump to the line.
6. Quickly add a new row
Ctrl + Enter can create a new row at the current line.
Ctrl + Shift + Enter to add a row above the current line.
7. Multi-line indent
After selecting multiple lines press Ctrl +] to increase the indent, press Ctrl + [to reduce indentation.
PS: found with Tab and Shift + Tab is also possible.
8. A complete copy format to avoid confusion
We found a copy of a piece of code from other files over time, usually just the first line indent, behind all the chaos, then you can use Ctrl + Shift + V to paste, paste can be maintained in the process of indentation , when the format is correct.
9. Reopen closed tab
In Chrome inside, if you do not accidentally close a tab and want to restore it, you can press Shift + Ctrl + T to reopen it.
In ST3, too, if you do not accidentally close a file, you can press Shift + Ctrl + T to quickly recover. Continuously repeating the key, ST will be closed in accordance with the order to re-open tabs.
10. Hold down the shift + ctrl and press the [left] or [right] to quickly select a line in a certain part of the continuous press to expand the range of options.
For example, you need to be a part of a comment (ctrl + /) or deleted using this feature is very convenient.
11. The line moved up and down
Position the cursor or select a block area, then ctrl [up] [down] can be moved up and down the line press shift + +.
12. shift + ctrl + d can quickly copy an entire row of the cursor, and copied to the line before.
13. Ctrl + Shift + M: Select the entire contents of which do not include the braces {}.
14. Ctrl + Shift + K: delete the entire line.
15. Close the HTML tags quickly
Use shortcut Alt + write html file can quickly close a tab, such as writing < html> and press Alt + can quickly get < / html>.
But this is still very complicated, you can use the front-end plug Emmet plug directly in the new html file (must first set up the syntax mode html) direct input! (On behalf of html5 html document format) and then press ctrl + E to.
Report: How to Install package control
Through the shortcut ctrl + \ `` or View> Show Console` menu to open the console, enter the following Python code execution (for Python3.x interpreter) |
|
|
|