Home > Development Tools > sublime > body text

Tips on customizing snippets in sublime3

藏色散人
Release: 2020-04-20 13:50:49
forward
3122 people have browsed it

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
Copy after login

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!

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