PDA

View Full Version : [OPEN] One-statement blocks don't get indented



Atte
13 Apr 2012, 12:57 AM
When I reopen my project the IDE apparently runs some sort of auto-indentation against all my code. This results in the following change everywhere every time I open my project:


if (something)
doStuff();becomes
if (something)
doStuff();

However, if I add curly braces around the body indentation works properly:
if (something) {
doStuff();
}