diff options
author | bnewbold <bnewbold@robocracy.org> | 2016-06-11 16:57:37 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2016-06-11 16:57:37 -0400 |
commit | 19491dbb253abd6cec83f213c14bd531407220e9 (patch) | |
tree | 434e01a33a790d19429550f9c70db487eb859fb7 /software | |
parent | 60de53195efe9bf0af65033552edf889c2036ac3 (diff) | |
download | knowledge-19491dbb253abd6cec83f213c14bd531407220e9.tar.gz knowledge-19491dbb253abd6cec83f213c14bd531407220e9.zip |
software/c: auto-indentation one-liner
Diffstat (limited to 'software')
-rw-r--r-- | software/c.page | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/software/c.page b/software/c.page index 7ebe3c1..a0cb064 100644 --- a/software/c.page +++ b/software/c.page @@ -62,3 +62,11 @@ Zed Shaw Notes * testing: http://c.learncodethehardway.org/book/ex30.html * debug macros: http://c.learncodethehardway.org/book/ex20.html +Auto-Indent Styling +--------------------- + +Via [riolet](https://github.com/riolet/WAFer), this one-liner will auto-indent +files:: + + find . \( -name '*.c' -o -name '*.h' \) -exec indent --no-tabs --linux-style --line-length 90 --indent-level 4 -bli0 \{\} \; + |