Java eclipse突出缺少括号 [英] Java eclipse highlight missing brackets

查看:155
本文介绍了Java eclipse突出缺少括号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在任何地方找不到该选项。有什么方法在eclipse警告这样的东西吗? if(a == b)continue; 而不是 if(a == b){continue;}

I just can't find the option anywhere. Is there some way in eclipse to warn about stuff like this? if(a==b)continue; instead of if(a==b){continue;}

推荐答案

=http://checkstyle.sourceforge.net/ =nofollow> CheckStyle 是一个很好的工具,也可以用作eclipse插件。您可以通过在此工具中配置规则,指定要对您/您的团队实施的不同类型的编码样式。 可以帮助您创建自定义检查。

CheckStyle is a nice tool which can also be used as a plugin for eclipse. You can specify different kinds of coding styles you want to enforce on you / your team, by configuring rules in this tool. This could help you create your custom check.

这篇关于Java eclipse突出缺少括号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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