Skip to content

Instantly share code, notes, and snippets.

@cmcbride
Created May 22, 2011 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmcbride/985742 to your computer and use it in GitHub Desktop.
Save cmcbride/985742 to your computer and use it in GitHub Desktop.
current indent config for C
/* some basic formatting guidelines for C code */
--indent-level 4
--tab-size 8
--no-tabs
--line-length 100
--braces-on-if-line
--braces-on-struct-decl-line
--cuddle-do-while
--cuddle-else
--continue-at-parentheses
--break-after-boolean-operator
--dont-break-function-decl-args
--declaration-indentation 0
--preserve-mtime
--dont-format-comments
--leave-optional-blank-lines
--honour-newlines
--leave-preprocessor-space
--blank-lines-after-declarations
--blank-lines-after-procedures
--space-after-parentheses
--no-space-after-if
--no-space-after-function-call-names
--no-space-after-for
--no-space-after-while
--no-space-after-casts
--case-indentation 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment