Code Style setting: the "variable scope" blank lines and intentation?

Hello, what settings in the Editor/Code Style/C/C++ is responsible for reformatting this:

   if (true) {
       // something
   }

   {
       std::lock_guard lock(mtx1);
       // something
   }
   {
       std::lock_guard lock(mtx2);
       // something
   }

to this:

 if (true) {
       // something
   } {
       std::lock_guard lock(mtx1);
       // something
   } {
       std::lock_guard lock(mtx2);
       // something
   }

 

I would like to disable it, and do not have the end of the previous block and the start of the new one  (} {) on the same line.

 

1

Please sign in to leave a comment.