[Snippet] Sublime Text class method snippet 04-17-2014, 01:28 AM
#1
If you write objective oriented PHP then this snippet becomes really handy. All you do is type "cmeth" and hit Tab and you get a new method with docblock etc.
Code:
<snippet>
<content><![CDATA[
/**
* $1
*
* $2
*
* @access ${3:public}
* @since ${4:1.0}
* @author ${5:Your Name <your@email.net>}
* @return ${6:void}
*/
$3 $7function $8($9)
{
$10
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>cmeth</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.php</scope>
</snippet>



![[+]](https://sinister.li/images/modern/collapse_collapsed.png)