Home > Development Tools > sublime > body text

Share tips for customizing snippets in sublime3

藏色散人
Release: 2020-06-16 13:31:07
forward
3216 people have browsed it

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!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!