Home >Development Tools >sublime >Tips on customizing snippets in sublime3

Tips on customizing snippets in sublime3

藏色散人
藏色散人forward
2020-04-20 13:50:493167browse

Tips on customizing snippets in sublime3

About Snippets

In the programming process, you will always encounter a lot of repetitive work, such as defining a method , debugging code, etc.

snippets are used to solve this part of the work, and can solve a lot of time

How to customize in sublime?

tools->new snippets

New file format

Only two items are required

1.CDATA[]The format in brackets is the format that needs to be fixed

2.tabTrigger uses the TAB key to call the snippets string or index

After writing, save it in the (windows) Preferences->Browse Packages directory with the .sublime-snippet suffix At the end,

content definition tips

1. {Number} can get a TAB placeholder

2.{1:default } can get a default value

3, $ can get the $ character

For more technical articles related to sublime text, please visit the sublime tutorial column: https: //www.php.cn/tool/sublime/

The above is the detailed content of Tips on customizing snippets in sublime3. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete