Java – is there a way to hide annotations in NetBeans or eclipse?
It may be a silly question, but it would be nice to have a way to hide or collapse Java comments when viewing source code in NetBeans (or eclipse) I didn't find an option, quick search didn't change anything
This is "one of the codes you should never do, code folding is a sin!" What happened?
Personally, I find it useful for annotated entity classes All hibernate / etc annotations are just vulnerabilities. Once my mapping works properly, I will never see it It is really similar to import
(yes, I can use XML instead of annotations, and I may start doing so. But I just want to know...)
Solution
I only use eclipse or idea. I don't know any ide options to hide comments. In my opinion, this is a good thing
Your comments will affect how the code is compiled, and usually how the code runs In my opinion, hiding them is equivalent to hiding the public / protected / private keywords in the method signature or any other component of the language Their exclusion changes the meaning of their surroundings and therefore the expectations of developers