[Goodies-dev] 1 tab, 2 spaces or 4 spaces ?
Jannis Pohlmann
jannis at xfce.org
Mon Oct 9 10:38:17 CEST 2006
On Mon, 9 Oct 2006 08:04:05 +0200, Landry Breuil wrote:
> 2006/10/8, Juju <jujucece at gmail.com>:
> >
> > Hi,
> >
> > I try to clean the code of the genmon plugin, and I want to uniform
> > the indentation of the code.
> >
> > Actually, there's part of the code with 1 tab indentation, other
> > lines with 2 spaces and the most with 4 spaces.
> >
> > My question is quite simple, what should I do ?
> > Is there a coding convention for this type of syntax "details" ?
>
> (snip)
>
> Ps : if there IS a convention for xfce-related apps, why not having a
> common indent-commandline written somewhere in the developer docs ?
There is no convention. E.g. compare the code of xfwm4 to that of
Thunar.
Personally, I prefer the GNU coding style, which is used in Thunar,
libexo, GLib, GTK+ and many more:
http://www.gnu.org/prep/standards/html_node/Formatting.html
Regards,
Jannis
More information about the Goodies-dev
mailing list