Home >Development Tools >sublime >Share tips for customizing snippets in sublime3

Share tips for customizing snippets in sublime3

藏色散人
藏色散人forward
2020-06-16 13:31:073269browse

The following tutorial column of sublime will introduce to you the method of sublime text3 to turn off the prompt update. I hope it will be helpful to friends who need it!

Share tips for customizing snippets in sublime3

About Snippets

In the programming process, you will always encounter a lot of repetitive work, such as Define a method, debug 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 needs to be fixed

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

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

content definition tips

  • {numeric number} can get a TAB Placeholder

  • {1:default} can get a default value

  • $ can get the $ character

The above is the detailed content of Share tips for 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