Skip to content

Instantly share code, notes, and snippets.

@brobertsaz
Last active December 16, 2015 05:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brobertsaz/5384619 to your computer and use it in GitHub Desktop.
Save brobertsaz/5384619 to your computer and use it in GitHub Desktop.
Ruby Expression snippet for Sublime Text 2
These two snippets can be copy/pasted into a Sublime Text 2 new snippet and saved as a [.]sublime-snippet
To create <%= <cursor> %> use rb=+tab
<snippet>
<content><![CDATA[<%= ${1} %>]]></content>
<tabTrigger>rb=</tabTrigger>
<description><%=… %></description>
</snippet>
To create <% <cursor> %> use rb=tab
<snippet>
<content><![CDATA[<% ${1} %>]]></content>
<tabTrigger>rb</tabTrigger>
<description><%… %></description>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment