Possible Duplicate:
Eclipse and curly braces
So basically this:
public void foo
{
doStuff();
}
Instead of the default, which is this:
public void foo {
doStuff();
}
Just personal preference.
Go to Source | Format Document or press Ctrl+Shift+F.
To jump to the matching bracket, press Ctrl+Shift+P.
The simplest and global way: Go to Window -> Preferences. Then in search put: "brace". Select -> Java -> Code Style-> Formatter After opening new window go to brace tab and change it as you prefer.
go to windows -> preferences -> java -> code style -> formatter
press edit and go to braces tab
choose braces style that you want for each.
hope help
Next time when You forget where it was just type "formatter" in window>preferences. It will filter it out fast and smooth.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With