I’m trying st2 for the first time coming from textmate (newbie there too ) and there is something I cannot do:
In TM using the HTML(rails) syntax I can autocomplete command bracket if I type <% I get the other side %> in automatic.
The syntax file seems to be the same of TM, any way to do that?
Html.erb angle brackets autocomplete
lucac81
#1
0 Likes
lordmagnum
#3
Create a new snippet:
‘Tools’ > ‘New snippett’ will open a new file. Overwrite the default text with something like this…
]]> % ERB Tag source.erbTyping %-tab will insert <% %> with the cursor in the erb. Add %= and %- for other erb tags.
Save the file in the erb package or in your Application Support/SublimeText/Packages/User folder with the extension .sublime-snippet
0 Likes