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;}
Or can maybe the format function fix this?
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;}
Or can maybe the format function fix this?
Window-->Preferences--> Java > Editor > Save Actions-->Additional actions-->Configure-->Code Style--> Use blocks in if/while...
here you can configure the style you want.
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.