Sublime Forum

Is there a plugin for that ? Code wrap

#1

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 ?

0 Likes

#2

Possible with the snippets. I have one to enclose a text between begin … end statement for example :

<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 :wink:

0 Likes