Answer the question
In order to leave comments, you need to log in
Are there convenient programs for storing snippets with parameters?
Are there convenient programs for storing snippets with parameters?
What I mean. For example, there is a snippet
%var% myfunc( %var% t ) { return t; }
I write var = int somewhere and get
int myfync( int t ) { return t; }
Usually snippets are just pieces of text, but I would like to add such parameters.
There seems to be something similar in the studio, but I want it to be in all programming languages and separate from the studio.
Answer the question
In order to leave comments, you need to log in
Sublime Text has built-in snippets with parameters.
<snippet>
<content><![CDATA[
Hello, ${1:this} is a ${2:snippet}.
]]></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>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question