Home Download Buy Blog Forum Support

Is there a plugin for that ? Code wrap

Is there a plugin for that ? Code wrap

Postby DjebbZ on Fri Mar 15, 2013 10:33 am

Hi ST guys,

I'd love to have a plugin allows me wrap my code with other code, like ST2/Emmet can wrap the selection with custom tags.

The workflow :

1. I write some code
2. I realize this should be in a "if"
3. I select this code
4. Magic Key
5. I write my if/whatever, and the code is wrapped.

Possible ? Existing ?
DjebbZ
 
Posts: 1
Joined: Fri Mar 15, 2013 10:27 am

Re: Is there a plugin for that ? Code wrap

Postby Clams on Fri Mar 15, 2013 10:44 am

Possible with the snippets. I have one to enclose a text between begin .. end statement for example :
Code: Select all
<snippet>
   <description>begin .. end</description>
    <content><![CDATA[begin ${0:: }
end]]></content>
    <tabTrigger>beg</tabTrigger>
    <scope>source.systemverilog</scope>
</snippet>


There is some snippets master on the forum that could explain better how to use them efficiently ;)
Clams
 
Posts: 46
Joined: Fri Dec 30, 2011 7:44 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 64 guests