Skip to content

Instantly share code, notes, and snippets.

@alecmatias
alecmatias / percentage-ruby-wrapper.sublime-snippet
Last active December 19, 2015 23:09
Sublime Text snippet to quickly insert <%= =>. Use by typing % and then hitting tab. For OS X, save the file to: /Users/yourname/Library/Application Support/Sublime Text 2/Packages/User
<snippet>
<content><![CDATA[
<%= $1 %>
]]></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.ruby, source.ruby.rails, text.html.ruby</scope>
</snippet>