Skip to content

Instantly share code, notes, and snippets.

@alecmatias
Last active December 19, 2015 23:09
Show Gist options
  • Save alecmatias/6032493 to your computer and use it in GitHub Desktop.
Save alecmatias/6032493 to your computer and use it in GitHub Desktop.
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment