Is there some kind of automated way to change code style from something like :
Into :
I've decided to move from the former to the later because it's cleaner and prettier. However I have quite a few old projects that use the 1st writing style and I don't want to change hundreds of { by hand.
Code:
for(blahblah) {
if (blahblah) {
stuff;
}
else {
stuff;
}
}
if (blahblah) {
stuff;
}
else {
stuff;
}
}
Into :
Code:
for(blahblah)
{
if (blahblah)
{
stuff;
}
else
{
stuff;
}
}
{
if (blahblah)
{
stuff;
}
else
{
stuff;
}
}
I've decided to move from the former to the later because it's cleaner and prettier. However I have quite a few old projects that use the 1st writing style and I don't want to change hundreds of { by hand.