Author Topic: GNU Brace style  (Read 2500 times)

aachkar

  • Guest
GNU Brace style
« on: November 26, 2009, 08:09:31 PM »
I would like to request support in the C/C++ Beautifier for the GNU style.

The C/C++ Beautifier currently only supports 3 brace styles:

Style1:
if (){
<indent>++i;
}

Style 2:
if ()
{
<indent>++i;
}

Style 3:
if ()
<indent>{
<indent>++i;
<indent>}

I would like to have support for the following brace style:

if ()
<indent>{
<indent><indent>++i;
<indent>}

which is a mix between Styles 2 & 3. This is known as the GNU style, in the Code::Blocks IDE.

In the Code::Blocks IDE, they have a source formatter that supports the following styles:
ANSI, K&R, Linux, GNU, Java, and Custom.

In "Custom", you can create your own. Unfortunately, with SlickEdit, you can't.
I talked to SlickEdit support a long time ago, and they walked me through some macros
that might help but only when typing and not when using the C/C++ Beautifier.

P.S. The Eclipse IDE also has support for multiple styles, including customizing your own.