Ps:st3 is a big difference between Mac Ox and Windows under different platform shortcuts. The following is a commentary for the Windows platform. 1. You can open the picture directly
Version 3 has a good feature (for the front end): You can open the picture directly in the ST3.
2. Goto anything function-Quick Find (Ctrl + P) Enter the @+ function name to quickly find the function. Enter #+ text to quickly match text within the file.
3. Multi-line cursor function (CTRL + D, very practical)
How to change one word in a file to another.
Method One: Take advantage of the Find and replace function: Ctrl + H
Method Two (recommended): Multi-line cursor function, when one is selected, press Ctrl+d to select the other at the same time, and the other cursor is more.
However, a multi-row cursor can accomplish work that the find and replace function cannot.
For example, to add a new line after some qualifying statement, and adding some new text, how to quickly achieve this goal.
-You can select a mode and then Ctrl+d select another, and if there are some modes that you do not want to add a new row, press Ctrl+k,ctrl+d to skip this to the next qualifying pattern line.
-You can also press ALT + F3 shortcut keys to select all eligible words, resulting in multiple cursors instead of ctrl+d selected.
-If you want to add a cursor to each line, you can first CTRL + A and then ctrl+shift+l.
-If you want to add a cursor after multiple lines of a character, you can place the cursor behind the character, hold down the SHIFT key, and then right-drag to create multiple cursors.
4. Command mode (should be used as much as possible without wasting brain cells remembering a large number of commands shortcut keys)
For example, using CTRL + N to create a new file, the default is plain text, no syntax highlighting function, how to set the syntax mode.
-You can select the syntax mode you want to set by using the grammar selection section in the lower right corner.
-Another better way to do this is to use CTRL + SHIFT + p to open command mode, and then enter set syntax [language] to set the syntax pattern for a language, such as set syntax Java to Java syntax highlighting.
-ST3 supports fuzzy matching, you can also enter syntax Java or Ssjava directly.
-If you are currently in a language syntax mode, you can switch directly into other languages (instead of typing set syntax or syntax), such as Java syntax mode, then directly input JS can immediately switch to JavaScript syntax mode.
You can also enter minimap to hide or show the minimap epitome of the right
5. Jump to a line quickly
Press CTRL + G and enter the line number to quickly jump to that line.
6. Quickly add a new line Ctrl + ENTER to create a new row under the current line. Ctrl + Shift + ENTER to add a row above the current line.
7. Multi-line Indentation
When multiple lines are selected, press CTRL +] to increase indentation and press CTRL + [to reduce indentation.
PS: It is also possible to find tab and SHIFT + TAB.
8. Complete copy to avoid formatting confusion
We found that when you copy a piece of code from another file, it's mostly just the first line indent, the back is messy, you can use CTRL + Shift + V to paste, you can remain indented during the paste process, and the format is correct.
9. Reopen the closed label
In Chrome, if you accidentally close a tab and want to restore it, you can press SHIFT + Ctrl + t to reopen it.
Also in ST3, if you accidentally close a file, you can press SHIFT + Ctrl + t to quickly recover. Repeat the button consecutively, and St will reopen the tab in the order in which it was closed.
10. Hold down SHIFT + CTRL and press ← or → to quickly select a part of a row and press to expand the selection continuously.
For example, if you need to annotate a section (ctrl+/) or delete it, it is convenient to use this feature.
11. Move the row up or down
Position the cursor or select an area, and then press shift+ctrl+↑↓ to move the row up or down.
SHIFT + CTRL + D quickly copies the entire line where the cursor is located and before it is copied to the line.
ctrl+shift+m: All contents of the selected curly braces do not include {}.
ctrl+shift+k: Deletes the entire row.
15. Quickly close the tags in HTML
Use the shortcut key ALT + when writing an HTML file. You can quickly close a label, such as Write But this is still very cumbersome, you can use the front-end plug-in Emmet plug-in, directly in the new HTML file (first set syntax mode for HTML) directly input! (represents an HTML document in HTML5 format) and then press Ctrl+e.