ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

I use meth every day

October 02, 2012 2:07pm

Subscribe [1]
  • #1 / Oct 02, 2012 2:07pm

    skunkbad

    1326 posts

    I wrote up a little sublime snippet that I use for methods. The tab trigger is “meth”.

    <snippet>
        <content><![CDATA[/**
     * ${6:undocumented method}
     */
    ${1:public }function ${2:method_name}( ${3:\$${4:value}${5: = ''}} )
    {
     ${0:# code…}
    }
    
    // -----------------------------------------------------------------------]]></content>
        <tabTrigger>meth</tabTrigger>
        <scope>source.php</scope>
        <description>method</description>
    </snippet>

    I named it Method (PHP).sublime-snippet and put it in my Packages/User directory. Have you made any custom snippets that you use every day? Are you willing to share?

  • #2 / Oct 02, 2012 4:55pm

    NotDior

    56 posts

    Love the post title!

    I haven’t made any, but I just copied yours and put it into place! 😊

    Thanks for sharing…if I get any I’ll share them here.  I do know there is a codeIgniter “package” that you can get for sublime that’s pretty useful. 

    I’ve been thinking about creating something for starting a controller, model and a view.  I think those would be pretty useful…perhaps now would be a good time to start that!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases