(Sorry for the long post)
A question for the snippets guru.
I have this snippet:
<snippet>
<content><![CDATA[
{BEGIN}
//$0
$SELECTION
{END}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger></tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope></scope>
</snippet>
And this code:
class
1
2
a
I want to select the line containing 1 and 2 and wrap it with my snippet:
class
{BEGIN}
//
1
2
{END}
a
But currently the result is this:
class
{BEGIN}
//
1
2
{END}
a
The indentation of the second line is wrong.
It works if I select only 1 line.
Is this possible to do what I want with snippets ?
Thanks for your help.