Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

The method of customizing snippets for sublime3

Shulou Source: shulou.com Published: 2022-06-02 15:02:59 10月04日 Update

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!

Tags: Method character format article work code only suffix string done that is technique parenthesis number file time more directory knowledge index Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information NVidia Shulou Tech Info Shulou Technology Huawei