Create Sublime shortcuts and sublime shortcuts
Process:
Open the Sublime software --- preferences ---- browse package ----- find "php. sublime-snippet" --- and modify the content as needed.
<Snippet> <content> <! [CDATA [Add the shortcut key you want to set here]> </content> <tabTrigger> pre </tabTrigger> <scope> text.html-source. php </scope> <description> pre </description> </snippet>
In <content> <! [CDATA [Add the shortcut key you want to set here]> </content>
<TabTrigger> pre </tabTrigger>
<Scope> text.html-source. php </scope>
<Description> pre </description>
Is a descriptive resource.
${1 :\} indicates the position where the cursor stays.
All the code after writing:
<snippet> <content><![CDATA[echo "<pre>";print_r(${1:\$arr});echo "</pre>";]]></content> <tabTrigger>pre</tabTrigger> <scope>text.html - source.php</scope> <description>pre</description></snippet>
Sublime text 2 How to Use the shortcut key to jump to the previous editing point
Ctrl + alt + ↓ or ctrl + alt + →
Jump to the last or next editable place
In WIN7, what are the shortcut keys used by the Alignment plug-in of sublime text2?
The official saying is ctrl + alt + a, but I cannot do it here. You can try it.
I found the cause. It may be that QQ is in conflict with this. I can use it after setting the shortcut key.
Open Preferences => Package Settings => Alignment => Key Bindding-User
Then write
[
{"Keys": ["ctrl + alt + f"], "command": "alignment "}
]
Or change it to another non-conflicting shortcut key.
Reference: hands-on practice