- Code: Select all
/**
* foo
*/
I already have the following snippet, which is working:
- Code: Select all
<snippet>
<content><![CDATA[/**
* $0
*/]]></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>source.js, source.actionscript.3</scope>
</snippet>
The thing is that I want to know if I'm able to trigger the new line entries inside this comment block and replace it with *. This way I'm able to write the multiline comment without worrying about the size of it.
In TextMate I have this working like a charm. I have two snippets:


Note that in the second one, which is responsible to add a new line to the comment has its source set to
- Code: Select all
comment.block.documentation
Is there any way to accomplish this with Sublime Text?