The method of customizing snippets for sublime3
Xiaobian to share with you sublime3 custom snippets method, I hope you have something to gain after reading this article, let's discuss it together!
About Snippets
There is always a lot of repetitive work in the programming process, such as defining a method, debugging code, etc.
snippets are used to solve this part of the work, which can solve a lot of time
How to customize in sublime?
tools->new snippets
new file formats
Required Only two items
1.CDATA[] The ones in brackets are the ones that need to be fixed
2. tab Trigger A string or index of snippets that is called by the TAB key
After writing, save it in (windows)Preferences->Browse Packages directory with the suffix.sublime-snippet.
Content Definition Tips
1.{number} can get a TAB placeholder
2.{1:default} can get a default value
3.$can get $characters
After reading this article, I believe you have a certain understanding of "sublime3 custom snippets method", if you want to know more related knowledge, welcome to pay attention to the industry information channel, thank you for reading!