Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Does anyone know if it would be possible to hide java comments in Eclipse? Is there any trick I could try?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
242 views
Welcome To Ask or Share your Answers For Others

1 Answer

You can fold most block /* ... */ comments to a single line. You can't do that inside code blocks (method bodies, static blocks, etc.) and maybe a few other places. You also can't collapse multiple lines of // ... style comments.

You could always change the syntax highlighting colors so the comments are in the background color. ;)

To turn on folding: Windows->Preferences->Java->Editor->Folding


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...