![]() |
|
[Snippet] Sublime Text class method snippet - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Coding (https://sinister.li/Forum-Coding--71) +--- Thread: [Snippet] Sublime Text class method snippet (/Thread-Snippet-Sublime-Text-class-method-snippet) |
[Snippet] Sublime Text class method snippet - RogueCoder - 04-17-2014 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>[Snippet] Sublime Text class method snippet - RogueCoder - 04-17-2014 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> |