Skip to content

Instantly share code, notes, and snippets.

@tjventurini
Created February 20, 2019 08:44
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 tjventurini/156fe8a624aabe3ba8cab4265f7f30fa to your computer and use it in GitHub Desktop.
Save tjventurini/156fe8a624aabe3ba8cab4265f7f30fa to your computer and use it in GitHub Desktop.
Sublime Text Snippet for PHP Methods
<snippet>
<content><![CDATA[
${5}
${1:public }function ${2:name}(${3:params})${4:: void}
{
${6:// some code}
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>method</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.php</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment