score:0

Accepted answer

this is due to eclipse bug # 471145 (specific to mars / 4.5.0), which was reported on 2015-06-26, fixed on 2015-08-01, and will be included in eclipse 4.5.1 - which should be complete and ready for download by the end of september 2015 as part of the mars coordinated service release.

score:0

go to windows > preferences > java > code style > formatter > white space and in control statements > blocks, unselect the "before opening brace" option :)

enter image description here

score:1

you can do that in the windows -> preferences -> java -> code style ->formatter -> edit profile section

enter image description here


i think it does once you select the other option in drop down that you can see below

enter image description here


Related Query

More Query from same tag