force use of curly braces - how to ?


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. 


1 comment


We don't have this code style settings yet, the feature request is In general, code style cleanup is lacking in C++ compared to C# at the moment, but we plan to improve it.



Please sign in to leave a comment.