• Diff for "Development/es/CodingStyle/es"
  • Immutable Page
  • Info
  • Attachments
Differences between revisions 1 and 2
Revision 1 as of 2007-09-23 03:19:35
Size: 617
Editor: 175-56-223-201
Comment:
Revision 2 as of 2008-03-30 18:33:56
Size: 617
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

Compiz Fusion usa el mismo estilo de código en Compiz:

Estilo básico

  • La sangría son 4 espacios, tabs son 8. Así que una sangría odd-leveled termina con 4 espacios.

  • foo () no foo()
  • {{{ if (foo)

{

  • bar ();

} else {

  • baz ();

} }}} no

if (foo) {
   bar ();
} else {
   baz ();
} 
  • static int
    foo ()
    {
       bar ();
    }

    no

    static int foo ()
    {
       bar ();
    }

Configuraciones del Editor

vim

set formatoptions=croqlt
set ts=8
set softtabstop=4
set shiftwidth=4
set cindent
set tw=80
set cino=(0,t0

Development/es/CodingStyle/es (last edited 2008-03-30 18:33:56 by localhost)