1. Automatic completion of simple grammarpreferences->setting User
Enter the following code to save.
{"Auto_complete": True, "auto_match_enabled": true}
exit Sublime re-enter.
Seems to be not working, need to wait a while to OK.
2, HTML commonly used to complement the waysuch as: input
Div.wrapper>div.header+div.main+div.footer
Then press the TAB key to instantly turn
<div class= "wrapper" ><div class= "header" ></div><div class= "main" ></div><div class = "Footer" ></div></div>
Explain
> contains child elements. Class name #id名 + sibling element
Support brackets, input as follows:
Html> (Head>title) +body
Then press the TAB key to instantly turn
Comments:
CTRL +/
3, PHP commonly used to fill the wayPHP Tags: php + TAB key
Classes: Class + TAB key
Looping: foreach + TAB key
Line Comment: Ctrl +/
Block notes: Ctrl + SHIFT +/
Code block Comment:/** + TAB key
4, File template loading. Article Detailed address:
http://www.fantxi.com/blog/archives/sublime-template-engine-sublimetmpl/
:
Https://github.com/kairyou/SublimeTmpl
Unzip the package into a folder in the browse package
Named as: Sublimetmpl
The shortcut keys are as follows:
Ctrl+alt+h html
Ctrl+alt+j JavaScript
Ctrl+alt+c CSS
Ctrl+alt+p PHP
Ctrl+alt+r Ruby
Ctrl+alt++shift+p python
Sublime Text3 Editor Common shortcuts