Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How sublime3 customizes snippets

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

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!

Tags: Articles characters formats work code values interests only at the same time suffixes strings that is techniques parentheses numbers files methods time more friends Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL vpn MariaDB Apple Shulou Technology