在Eclipse中跨文件搜索注释掉的代码 [英] Search for commented-out code across files in Eclipse

查看:649
本文介绍了在Eclipse中跨文件搜索注释掉的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么快速方法可以在Eclipse中找到Java文件中所有注释掉的代码?
在搜索中的任何选项,或者任何可以做到这一点的附加组件?

Is there a quick way to find all the commented-out code across Java files in Eclipse? Any option in Search, perhaps, or any add-on that can do this?

它应该只能找到被注释掉的代码,不是普通的注释。

It should be able to find only code which is commented out, but not ordinary comments.

推荐答案

Sonar可以做到: http://www.sonarsource.org/commented-out-code-eradication-with-sonar/

Sonar can do it: http://www.sonarsource.org/commented-out-code-eradication-with-sonar/

这篇关于在Eclipse中跨文件搜索注释掉的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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