Anish1712's blog

By Anish1712, history, 2 years ago, In English

Sublime Text Snippets provides a quick way to insert blocks of text that are used repeatedly while coding, which can boost your coding speed to a great extent, saves time and eliminates errors.

Creating a sublime text snippet is super easy. In order to create a new snippet you will need to:

  • Open up Sublime Text.
  • Goto Tools -> New Snippet.
  • Modify the contents inside of the block.
  • Enable your tab trigger.
  • Save the file with .sublime-snippet extension.
  • To invoke the snippet, type the trigger word and press tab.

Example snippet :

<snippet>
	<content><![CDATA[
<!--
    Snippet code Here
 -->
]]></content>
	<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
	<!-- <tabTrigger>hello</tabTrigger> -->
	<!-- Optional: Set a scope to limit where the snippet will trigger -->
	<!-- <scope>source.python</scope> -->
</snippet>
 
 
 
 
  • Vote: I like it
  • -16
  • Vote: I do not like it

»
2 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Thanks

»
2 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Great content !

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

I need to change my snippet so how did I open my already maked snippet