Skip to content

Instantly share code, notes, and snippets.

@sergio1990
Created April 8, 2014 13:39
Show Gist options
  • Save sergio1990/10125571 to your computer and use it in GitHub Desktop.
Save sergio1990/10125571 to your computer and use it in GitHub Desktop.
Some usefull Sublime Text 2 snippets
<snippet>
<content><![CDATA[${1:${TM_FILENAME/(?:\A|_)([A-Za-z0-9]+)(?:\.rb)?/(?2::\u$1)/g}}]]></content>
<tabTrigger>cnm</tabTrigger>
<scope>source.ruby</scope>
<description>SampleClass</description>
</snippet>
<snippet>
<content><![CDATA[
def initialize(${1})
${2}
end
]]></content>
<tabTrigger>dinit</tabTrigger>
<scope>source.ruby</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment