Remove all PHPDoc Blocks from File

Hello,

oft I need to remove all PHPDoc Blocks from a File. (Because they are wrong, and Update is not alway a good solution.

Is it possible to do that easy with IntelliJ?

If it is not possible, it would be a good feature.

cu

3 comments
Comment actions Permalink

Same request.

After modyfing the code half of files have wrong doc blocks.

There's no feature to simple rebuild blocks everywhere

0
Comment actions Permalink

Actually, there is no such feature at the moment, please feel free to leave a feature request:

https://youtrack.jetbrains.com/newIssue

As a workaround, you may consider trying the SSR pattern to search & remove doc blocks:

https://www.jetbrains.com/help/phpstorm/structural-search-and-replace.html

0
Comment actions Permalink

Somewhere one guy from your Support answered that Code / External Tools -> write own php script -> bind to key, then regenerate PHPDoc back

I mean - it was exactly what i need that time, but not exactly i should request.

Once do that i understand what is "lose all comments in project", so i never delete phpdocs currently.

One solution is to use "Find by inspection name" feature (exists in 2019.3) -> there we can apply updating PHPDoc blocks in batch

0

Please sign in to leave a comment.