Our codebase has a "cuddled" curly brace style. That is, the {
appears on the same line as the function
(or if
or while
) statement that it goes with:
if (condition) {
doThis();
}
else {
doThat();
}
We have a coder who keeps committing stuff with the curly brace on its own blank next line, which drives me bonkers:
if (condition)
{
doThis();
}
else
{
doThat();
}
I don't want to start a debate on the relative merits of the two formats, but I do want to bring this programmer's code in line with our established style. Is there a Sublime Text plugin or macro that will convert between these styles? Doing it manually seems like such a waste of time.