Created
April 5, 2020 14:23
-
-
Save drrost/8254931be787ccb068b0f280a7a1a2ed to your computer and use it in GitHub Desktop.
Uncrustify setup (C autoformat)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To `~/.bash_profile`: | |
emacs ~/.bash_profile | |
# Add the line: | |
UNCRUSTIFY_CONFIG="$HOME/.uncrustify" | |
# Generate a new configuration file: | |
uncrustify --update-config -o ~/.uncrustify | |
# Usage | |
uncrustify -c .uncrustify -f main.c -o main.c -c $UNCRUSTIFY_CONFIG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment