Editing Template for phpDoc Block?

hi!

with contextmenu -> generate -> phpdoc blocks I can add phpDoc Blocks to my functions.

The generated docBlock for these function

public static function foo($bar){
     return $bar; }



will be

    /**      * @static      *      * @param $bar      *      * @return mixed      */



Is it possible to define the template for this, to generate

    /**
     * Short description
     *
     * Long description if any...
     *           * @static      *      * @param defineType $bar defineDescription
     *

     *

     * @return mixed defineDescription      */



the italic text should be static. it is only a reminder to define this
7 comments
Comment actions Permalink

Hi there,

There is no such option available anywhere in current version of PhpStorm.

0
Comment actions Permalink

This feature is so much needed. Every team has different styles and rules how to set these up...

0
Comment actions Permalink

Start to write a phpdoc for a method typing `/**<Enter>` as on the video attached to get @param, @return, and @throw methods generated.



Attachment(s):
out-1.ogv.zip
0
Comment actions Permalink

Voted! Thank you very much for creating this issue!

0
Comment actions Permalink

Voted! It seems odd PHPStorm doesn't already support the ability to modify the docblock templates. I just hope if the feature is implemented the templates support variables like $END$ so I can control the caret placement.

0
Comment actions Permalink

Follow this step, maybe help you

https://imgur.com/a/oGano

0

Please sign in to leave a comment.