DevelopedLogic
DevelopedLogic

Reputation: 165

Eclipse Auto Whitespace Disable

Before Eclipse Oxygen (Eclipse Neon) I would be able to type:

while(condition){

}

and it would look like it does. Now in Oyxgen, when I type the above, a space is automatically added after the close bracket, like so:

while(condition) {

}

How can I disable this auto space? I am not used to it, and all of my other code does not have it. It is extremely inconvenient to have to click into its position and backspace every time I write a statement.

Upvotes: 0

Views: 1136

Answers (2)

user1537366
user1537366

Reputation: 1187

Uncheck the following preference:

Window -> Preferences -> Java -> Editor -> Typing
-> Automatically insert at correct position -> Braces

Upvotes: 2

dim
dim

Reputation: 1032

Try this: From the main menu go to Window -> Preferences. Then go to Java -> Code Style -> Formatter, Edit... and choose White Space tab. On the left menu go to Control statements -> Blocks and uncheck before opening brace and OK. This is on Eclipse Neon. The Eclipse Oxygen menu may be slightly different but this is the main idea.

Upvotes: 0

Related Questions