Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: nightlight on October 04, 2010, 05:33:18 am

Title: Setting Whitesmith-like indenting style
Post by: nightlight on October 04, 2010, 05:33:18 am
Is it possible to configure formatting style that is almost like Whitesmith's, except that function braces are not indented i.e. like this:

int func(int a,int b)
{ int c;

   if (a>=b)
     {
      c=a-b;
      if (a==b)
         {
          ...
          }
      ... other code...
      }
   else
     {
      c=b-a;
      ...
     }
   return c;
}

I tried variety of settings, but it seems that function braces are always treated as any other braces. Can this be configured some way (maybe some other way to configure Artistic Style plugin)?