force use of curly braces - how to ?

Hello

I'm refactoring a large code base and there are many instances of single lines statements inside loops and control of flow without the use of 'curly braces'. This makes it hard to read and understand the code. I would like to 'Clean up' the code and get ReSharper to add curly braces everywhere, for if-else, for-loop, etc. Is there a setting like that anywhere. I couldn't find anything. 

Thanks!

1 comment

Hello,

We don't have this code style settings yet, the feature request is https://youtrack.jetbrains.com/issue/RSCPP-20266. In general, code style cleanup is lacking in C++ compared to C# at the moment, but we plan to improve it.

Thanks!

0

Please sign in to leave a comment.