user979033
user979033

Reputation: 6450

Where is the option on Eclipse to define that "{" and "}" will be in the same line and auto autocomplete?

i want that pair of brace ('{' and '}') will automatic will be:

public static void main(String[] args)
{   

}

instead of:

public static void main(String[] args){ 

}

and there is way to define the Autocomplete like Visual Studio ?

Upvotes: 0

Views: 62

Answers (1)

Jon Skeet
Jon Skeet

Reputation: 1500055

Window -> Preferences -> Java -> Code Style -> Formatter -> Edit... -> Braces.

Eclipse with Next Line bracing

Upvotes: 6

Related Questions