Emmet customization: for example, input vd and press the shortcut key to output var_dump ();

Source: Internet
Author: User
Emmet customization: for example, input vd and press the shortcut key to output var_dump (); formerly known as zen coding, now called Emmet, how to add your own defined quick input?
For example:
Enter vd and press the shortcut key to output var_dump ();

Where is this custom defined?

There are not many such articles and tutorials on the Internet, but they are all about how to use them. Do you know how to use it frequently?


Reply to discussion (solution)

Locate EmmetNPP \ emmet \ snippets. json under the plug-in directory.
Open modification

Click the menu command: Preferences (left of the last help)-> Browser packages-> php to enter the php directory, you will see a bunch of snippet, yes, you need to add the function here. Copy any file and modify the file name and rules as needed.
According to the landlord scene, if it is var_dump that is like this, File name: var_dump.sublime-snippet, the content inside:

 

  var_dump($1);

  

  
   
Vd

  

  
   
Source. php

  

  
   
Var_dump

  

 

I think you should have added the rest. Such as html, js, and SQL.
I have a simple guide page for sublime projects on github. it is just a lazy promotion, and few people know it.
Https://github.com/jikeytang/sublime-text

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.