Reputation: 59
When I type if()
then {
it looks like this
if() {
with space and without the right curly brackets
I want when I type if()
then {
to look like this
without space and with the right curly brackets
if(){
//code
}
Upvotes: 1
Views: 857
Reputation: 124235
Go to
Window -> Preferences -> Java -> Code Style -> Formatter -> Edit -> White Space (tab) -> Control statements -> Blocks
There deselect option "before opening brace".
To also remove space before else
deselect "after closing brace".
Upvotes: 6