Sinisterly
[Snippet] Sublime Text new class 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 new class snippet (/Thread-Snippet-Sublime-Text-new-class-snippet)



[Snippet] Sublime Text new class snippet - RogueCoder - 04-17-2014

When you start working on a class there's a few things that should always be present. This snippet sets all of that up for you and all you need to do is to write phpclass and hit Tab.

Code:
<snippet> <content><![CDATA[ namesapce $1\\$2 /** * $3 * * $4 * * @package $1 * @subpackage $2 * @since ${5:1.0} * @author ${6:Your Name <your@email.net>} */ class $7 { /** * $8 * * $9 * * @access ${10:public} * @since ${11:1.0} * @author $6 * @return ${12:void} */ $10 $13function $14($15) { $16 } } ]]></content> <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> <tabTrigger>phpclass</tabTrigger> <!-- Optional: Set a scope to limit where the snippet will trigger --> <scope>source.php</scope> </snippet>



[Snippet] Sublime Text new class snippet - RogueCoder - 04-17-2014

When you start working on a class there's a few things that should always be present. This snippet sets all of that up for you and all you need to do is to write phpclass and hit Tab.

Code:
<snippet> <content><![CDATA[ namesapce $1\\$2 /** * $3 * * $4 * * @package $1 * @subpackage $2 * @since ${5:1.0} * @author ${6:Your Name <your@email.net>} */ class $7 { /** * $8 * * $9 * * @access ${10:public} * @since ${11:1.0} * @author $6 * @return ${12:void} */ $10 $13function $14($15) { $16 } } ]]></content> <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> <tabTrigger>phpclass</tabTrigger> <!-- Optional: Set a scope to limit where the snippet will trigger --> <scope>source.php</scope> </snippet>