A
A
alex_ak12014-01-17 10:36:15
Snippets
alex_ak1, 2014-01-17 10:36:15

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

1 answer(s)
V
Vitaly Sorokin, 2014-04-09
@VitalySorokin

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 question

Ask a Question

731 491 924 answers to any question