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-row cursor function (ctrl + D, very practical)
How do I 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, after selecting one, pressctrl+Dcan select the other simultaneously, and the other cursor.
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 statements, and adding some new text, how do you quickly achieve this?
- You can select one of the modes and thenctrl+Dselect another, and if there are some modes that you do not want to add new rowsctrl+K, press toctrl+Dskip this to the next qualifying pattern line.
- You can also pressAlt + F3the shortcut key to select all the words that match the criteria, producing multiple cursors instead ofctrl+Dselecting them.
- If you want to add a cursor to each line, you can doctrl+Aso firstctrl+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, withctrl+Na 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.
- There is also a better way to usectrl + shift + POpen command mode, and then enter set syntax [language] to set the syntax pattern for a language, such as set syntax Java to be highlighted in Java syntax.
- ST3 supports fuzzy matching, you can also enter syntax Java or Ssjava directly.
- If you are already a language syntax mode, you can directly input other languages to switch (instead of entering set syntax or syntax), such as Java syntax mode, the direct 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 toCtrl + Genter a line number to quickly jump to that line.
6. Quickly add new lines
- Ctrl + EnterYou can create a new row under the current line.
- Ctrl + Shift + EnterYou can add a row above the current row.
7. Multi-line indentation
When multiple rows are selectedCtrl + ], press to increase indentation, and pressCtrl + [to decrease indentation.
PS: Found withTabandShift + Tabis also possible.
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 useCtrl + Shift + Vto 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 toShift + Ctrl + Treopen it.
In ST3, too, if you accidentally close a file, you can pressShift + Ctrl + Tquick resume. Repeat the button consecutively, and St will reopen the tab in the order in which it was closed.
10. Pressshift + ctrland hold and press←or→to quickly select a part of a row 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 pressshift+ctrl+↑↓to move the row up or down.
shift + ctrl + dyou can quickly copy the entire line where the cursor is located and before you copy it to the line.
Ctrl+Shift+M: The entire contents of the selected curly braces do not include {}.
Ctrl+Shift+K: Delete entire row.
15. Quickly close the tags in html
When writing an HTML file, youAlt + .can quickly close a tag by using the shortcut key, 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 pressctrl+E.
Attached: How to install the package control
ctrl+\View > Show ConsoleOpen the console using the shortcut key or menu, and enter the following Python execution code (for python3.x interpreter):
Import Urllib.request,os; Pf= ' Package control.sublime-package '; IPP = Sublime.installed_packages_path (); Os.makedirs (IPP) if not os.path.exists (IPP) else None; Urllib.request.install_opener (Urllib.request.build_opener (Urllib.request.ProxyHandler ())); Open (Os.path.join (IPP, PF), ' WB '). Write (Urllib.request.urlopen (' http://sublime.wbond.net/' +pf.replace (', '%20 ')) . read ()); Print (' Restart Sublime Text to finish installation ')
Resources
- Front-end development tool Tips Introduction-sublime
- 10 Sublime Text plugins required for full stack development
- Sublime Text Shift+ctrl Magical
- How to use the Sublimetext style code highlighting style in your blog
- Sublime Text 2 under the markdown writing
Alexia (Minmin)
Article from: http://www.cnblogs.com/lanxuezaipiao/p/4151095.html
Sublime Text 3 useful features and common shortcut key collection