Docblock folding with summary in java similar to php.
Below is a screenshot of a php class file and how it handles docblock folding
And here is an example of a java class file and how it handles docblock folding
The java docblock is folded in a way that you can't see any details about the docblock itself, just the literal /**...*/ while the php docblock folding shows the summary /** This is the first line in the docblock ... */
I've searched around but have been unable to solve this. Hopefully I can find someone here who has a solution.
请先登录再写评论。
I'm not sure what kind of "solution" you expect to get. This behavior is hard-coded. If you would like to see it changed, you're welcome to file a YouTrack issue.
Beyond filing a ticket and having it become a configurable item within IntelliJ itself, I wasn't sure if there was plugin support within the framework to control how code folding works. With your reply I assume the only recourse is to file the ticket.
Overall it would be nice if the experience within jetbrains products and language support was consistent.
We do strive to provide a consistent experience, however, since the support for every major language is developed by a separate team, small inconsistencies like the one you've run into are bound to occur.