An autoformat tool to automatically insert braces around single-line clauses?
Posted
by Brian Deacon
on Stack Overflow
See other posts from Stack Overflow
or by Brian Deacon
Published on 2009-08-13T22:20:30Z
Indexed on
2010/04/27
3:13 UTC
Read the original article
Hit count: 386
code-formatting
|tools
So assuming that in our work environment we've decided that the One True Faith forbids this:
if (something)
doSomething();
And instead we want:
if (something) {
doSomething();
}
Is there a tool that will do that automagically? Awesomest would be to have eclipse just do it, but since we're really just recovering from one ex-employee that thought he was too pretty for coding conventions, a less-friendly tool that would do it right just once would suffice.
© Stack Overflow or respective owner