开发者

Any way to hide comments in Eclipse

开发者 https://www.devze.com 2023-01-28 22:09 出处:网络
D开发者_如何学Coes anyone know if it would be possible to hide java comments in Eclipse? Is there anytrick I could try?You can fold most block /* ... */ comments to a single line. You can\'t do that i

D开发者_如何学Coes anyone know if it would be possible to hide java comments in Eclipse? Is there any trick I could try?


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


Enabling 'Folding' in the preferences dialog lets you use the '+' and '-' buttons next to the line numbers to hide comments. Do do this...

Windows->Preferences->Java->Editor->Folding

Then the comments will go away!

0

精彩评论

暂无评论...
验证码 换一张
取 消