if statement reformatting
I reinstalled everything recenty following upgrading my development PC to Windows 7.
When I run the reformatter over the code it mainly works but leave behind singleton if statements e.g.
if (condition)
do something;
This should be converted to
if (condition)
{
do something;
}
according to my settings.
I've tried all the recent 4.5 builds as well as 4.1 and get the same result - any ideas?
Please sign in to leave a comment.
Hello Paul
Do you have 'Braces in if-else statement' option set to 'Add braces' under ReSharper > Options > Languages > C# > Code Style > Braces Layout? Thank you!
Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Yes it's set under Resharper -> C# -> Formatting Style -> BracesLayout