{"repo":"uncrustify/uncrustify","free":true,"listed":false,"github":"https://github.com/uncrustify/uncrustify","clone":"git clone https://github.com/uncrustify/uncrustify.git","description":"Code beautifier","language":"C++","stars":3063,"topics":["beautifier","beautify","code-style","format","formatter"],"license":"GPL-2.0","category":"dev-tools","readme_excerpt":"--------------------------- Uncrustify A source code beautifier for C, C++, C#, Objective-C, D, Java, Pawn and Vala. Features Highly configurable - 901 configurable options as of version 0.83.0 - add/remove spaces - sp before sparen : Add or remove space before '(' of 'if', 'for', 'switch', 'while', etc. - sp compare : Add or remove space around compare operator ' ', '==', etc - add/remove newlines - nl if brace : Add or remove newline between 'if' and '{' - nl brace while : Add or remove newline between '}' and 'while' of 'do' statement - add/remove blanklines - eat blanks before close brace : Whether to remove blank lines before '}' - nl max : The maximum consecutive newlines (3 = 2 blank lines) - indent code - indent switch case : indent switch case: Spaces to indent 'case' from 'switch' - indent class colon : Whether to indent the stuff after a leading base class colon - align code - align func params : Align variable definitions in prototypes and functions - align struct init span : The span for aligning struct initializer values (0=don't align) - modify code - mod full brace for : Add or remove braces on single-line 'for' statement - mod paren on return : Add or remove unnecessary paren on 'return' statement Here is an example configuration file, and here is a before and after C source example. That should give you a pretty good idea of what Uncrustify can do. --------------------------------------------------------------------------- Binaries Pre compiled binaries for ","default_branch":null,"files":null,"tree":[],"storefront":"/r/uncrustify","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/uncrustify/uncrustify/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}