Create Sublime shortcuts and sublime shortcuts

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.