Editing Template for phpDoc Block? Follow
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
Please sign in to leave a comment.
Hi there,
There is no such option available anywhere in current version of PhpStorm.
This feature is so much needed. Every team has different styles and rules how to set these up...
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
http://youtrack.jetbrains.com/issue/WI-11111
Voted! Thank you very much for creating this issue!
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.
Follow this step, maybe help you
https://imgur.com/a/oGano