Reputation: 4365
This might be nitpicky, but I like all my code to be in the form
function()
{
code
}
instead of
function() {
code
}
When Eclipse autogenerates a class for me, it will use the latter format, and so I have to go through and change all of the generated methods. Is there anyway to make it so it will put it in the first format automatically? I'm using java if that makes a difference.
Upvotes: 4
Views: 157
Reputation: 1102
Yup. Look in Preferences -> Java -> Cody Style -> Formatter. you can alter a BUNCH of styles in there.
I think what you're looking for is in the Braces tab
Upvotes: 4