Java eclipse highlight missing brackets

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

Or maybe the format function fix it?

+2
java eclipse coding-style compiler-warnings brackets
Feb 02 2018-12-12T00:
source share
2 answers

CheckStyle is a good tool that can also be used as a plugin for eclipse. You can specify various types of coding styles that you want to apply for yourself / your team by setting up rules in this tool. This can help you create your own validation.

0
Feb 02 '12 at 16:15
source share

Window-->Preferences--> Java > Editor > Save Actions-->Additional actions-->Configure-->Code Style--> Use blocks in if/while... here you can customize the style you want.

+7
02 Feb '12 at 16:15
source share



All Articles