Regenerate PHPDOC blocks
I have some files that have phpdoc blocks created by Generate | PHPDOC Blocks.
When parameters change, it would be nice to have PHPStorm regenerate the blocks. It seems that the only way to regenerate a block is to delete it. If I want to go over the whole class file, I need to visit each method and delete the block.
Is there a way to automatically replace all the @items in the docblocks for the whole file with the current state of the code?
请先登录再写评论。
When you change parameters it's advised to use Refactor > Rename (Shift+f6). This should automatically update references in PHPdocs.
With already renamed variables I guess there's only one way to go: re-generate PHPdocs