How sublime3 customizes snippets
This article mainly introduces sublime3 how to customize snippets, has a certain reference value, interested friends can refer to, I hope you read this article after a great harvest, the following let Xiaobian take you to understand.
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
{Numeric number} gets a TAB placeholder
{1:default} can get a default value
$can get $characters
Thank you for reading this article carefully. I hope that the article "sublime3 how to customize snippets" shared by Xiaobian will help everyone. At the same time, I hope that everyone will support you a lot and pay attention to the industry information channel. More relevant knowledge is waiting for you to learn!