任何方式在Eclipse中隐藏注释 [英] Any way to hide comments in Eclipse

查看:349
本文介绍了任何方式在Eclipse中隐藏注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道是否可以在Eclipse中隐藏java注释?有没有什么可以尝试的?

解决方案

你可以折叠大多数块 / * ... * / 注释到一行。你不能在代码块(方法体,静态块等)或者其他几个地方。您也不能折叠多行 // ... 风格评论。



您可以随时更改语法高亮的颜色,所以注释是在背景颜色。 ;)



打开折叠:Windows->首选项 - > Java->编辑器 - >折叠


Does 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

这篇关于任何方式在Eclipse中隐藏注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆