I prefer to have all opening curly braces on a new line:
if (foo)
{
bar();
}
Can I configure the Eclipse code formatter to put empty catch blocks in the same line?
try
{
foo();
}
catch (ImpossibleCheckedException ignore) {}
I have already found the option to put the curly braces of an empty block on a single line (New Lines
, [ ] in empty block
), but not on the same line as the catch. And yes, I really want that empty catch block.