How do I get jsdoc documentation about my parameters?

My colleagues asked me why they weren't seeing any documentation while programming and started to wonder why we even document at all. I immediately started searching up and down the phpstorm documentation if it was some kind of setting that they forgot to configure. The parameter info (CTRL+P) literally only says "parameterName: Type". I can't find any way to show the JSDoc documentation on my parameters other than the quick documentation (CTRL-Q) but that removes the caret and interrupts the flow of programming. On top of that, when you click anywhere to continue, the quick documentation gets closed again. I know we can also pop-out the documentation but that's not ideal either because it takes up way too much space on screen.

I already looked at https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000287544-Get-parameter-hints-for-JSDoc-documented-function-expressions?input_string=How%20do%20I%20get%20jsdoc%20documentation%20about%20my%20parameters%3F and https://youtrack.jetbrains.com/issue/WEB-32429 but those are posts from 3 years ago!

This is how VSCode does it. How can I do this in PHPStorm? Do I need some kind of plugin?

0

This is how PHPstorm currently does it btw. I just updated to the latest version

0

Hello,

The popup "Parameter Info" on your second screenshot isn't supposed to provide documentation. You should use "Quick documentation" for that (in a popup or a tool window). Your suggestions are welcome in https://youtrack.jetbrains.com.

0

请先登录再写评论。