Is there a way to hide annotations in Netbeans or Eclipse?
Posted
by Boden
on Stack Overflow
See other posts from Stack Overflow
or by Boden
Published on 2009-04-10T22:05:28Z
Indexed on
2010/04/02
23:13 UTC
Read the original article
Hit count: 275
Maybe a dumb question, but it would be nice if there was a way to hide or collapse Java annotations when viewing source in Netbeans (or Eclipse). I'm not finding an option and a quick search didn't turn anything up.
Is this one of those "you should never want to do that, code folding is a sin!" things?
Personally I'd find it useful for annotated entity classes. All the hibernate / etc annotations are just fluff that I never look at once my mapping is working fine. It's similar to imports, really.
(Yes, I can use XML instead of annotations, which I might start doing. But I was just wondering...)
© Stack Overflow or respective owner