Anyway to control the formatting of annotations based on their package name?
已回答
I find myself wanting to easily separate annotations related to openapi from non-openapi
Is there any way I can control how annotations are displayed back on their package names?
请先登录再写评论。
I simply want to hide all open api annotations in code I’m looking at. I guess one way could be to remove all Open api imports but I want something that hides them from view.
There is no built-in feature for that. There is a feature request for the behaviour, but it is not quite popular: https://youtrack.jetbrains.com/issue/IDEA-139993/Option-to-fold-custom-code-blocks
Feel free to vote, so it becomes more attractive for developers.
You can use custom collapse regions, but it will be required to write more code in the sources.