Ctrl+d: By Word, multiple press + +
ALT+F3: Press the Select all category
Sorting mode: right mouse button +shift
CTRL+KK: Deleting Rows
Ctrl+shift+d: Copy the entire line of the cursor and insert it before the line
Ctrl+j: Merge rows (multiple rows that need to be merged are selected)
Ctrl+ku: Capitalize instead
CTRL+KL: Change to lowercase
Ctrl+shift+↑ Move up one line
Ctrl+shift+↓ Move down one line
CTRL+M: Move the cursor to the beginning or end of the parenthesis
Ctrl+shift+m: Select the contents in parentheses (press and hold-continue to select the parent bracket)
Ctrl+y: Restore Undo
Ctrl+shift+a: Select the cursor position parent tag pair child
ctrl+shift+[: Folding Code
Ctrl+shift+]: Unwind code
Ctrl+kt: Collapsing properties
Ctrl+k0: Expand All
CTRL+T: Word Exchange
Ctrl+shift+up: With upstream interchange
Ctrl+shift+down: Swap with downstream
Ctrl+enter: After inserting rows
Ctrl+shift Enter: Before inserting a line
CTRL + G, or CTRL + P, and then enter: Number can jump to line
CTRL + R or CTRL + P, at execute @. Then fill in the name of the function you want to search
E
The element name (Div, p);
Eg:<div></div>, <p></p>
E#id
Elements with ID (div#content, P#intro, Span#error);
Eg:<div id= "Content" ></div>, <p id= "Intro" ></p>, <span id= "error" ></span>
E.class
The Elements with Class (Div.header, P.error), ID and class can be written in a row, div#content.column
Eg:<div class= "Header" ></div>, <p class= "error" ></p>, <div id= "content" class= "column" ></div>
Add a property using E[attr]
Add text Using E{text}
E>n creating nested elements with each other
Child elements (Div>p, Div#footer>p>span)
Eg:<div>
<p></p>
</div>, <div id= "Footer" >
<p><span></span></p>
</div>
E*n
Multiple elements (Ul#nav>li*5>a)
Eg:<ul id= "NAV" >
<li><a href= "" ></a></li>
<li><a href= "" ></a></li>
<li><a href= "" ></a></li>
<li><a href= "" ></a></li>
<li><a href= "" ></a></li>
</ul>
E+n used to generate elements that are adjacent to each other
Multiple elements (Div+p+a+ul+li)
Eg:<div></div>
<p></p>
<a href= "" ></a>
<ul></ul>
<li></li>
E$*n
element with ordinal (div$*5)
Eg:<div1></div1>
<div2></div2>
<div3></div3>
<div4></div4>
<div5></div5>
Installing the Emmet Plugin
Ctrl+shift+p, install package->emmet (Zen Coding) [Default installation file path F:\Sublime Text 3\data\installed Packages]
Turn off Sublime Text2 update prompt click Preferences/settings-the user opens a document that is usually empty and adds the following code to the document
{
"Ignored_packages": [],
"Update_check": false
}
First, click menu Tools, New Plugin ..., enter the following in the created PY file:
Import Sublime, Sublime_plugin
Import WebBrowser
Url_map = {
'/users/jerry/sites/test/': ' http://test/',
}
Class Openbrowsercommand (Sublime_plugin. Textcommand):
def run (Self,edit):
window = Sublime.active_window ()
Window.run_command (' Save ')
url = self.view.file_name ()
For path, domain in Url_map.items ():
If Url.startswith (path):
url = url.replace (path, domain). replace (' \ \ ', ' \ \ ')
Break
Webbrowser.open_new (URL)
The code only a few lines, most of it is the reference to this post, I believe you can see clearly at a glance, do not explain.
Save the file to the Packages/user directory (Packages can go through the menu browser Packages ... Open), the file name is arbitrary, such as open_browser.py. The plugin was partially completed.
Next, assign the shortcut key for the plugin just now. Click menu Tools, Command Palette ..., or shift+cmd+p, open the command set, select "Key Bindings-user" to open the Personal accelerator configuration and enter the following:
[{"Keys": ["F12"], "command": "Open_browser"}]
Sublime text shortcut keys