Uncrustify

Uncrustify

Uncrustify is an open-source code formatting tool for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA. It aims to help programmers format, indent and beautify source code files to a common style.
Uncrustify screenshot

Uncrustify: Open-source Code Formatting Tool for Multiple Languages

An open-source tool for formatting, indenting, and beautifying source code in various programming languages, including C, C++, C#, ObjectiveC, D, Java, Pawn, and VALA.

What is Uncrustify?

Uncrustify is an open-source source code formatting and beautification tool for several programming languages. It was originally written by Ben Gardner to format C and C++ code to a common style, but now supports additional languages including C#, ObjectiveC, D, Java, Pawn and VALA.

The main goal of Uncrustify is to help teams of programmers adhere to a common coding style and convention within a codebase. It can format and beautify code by handling indentation, whitespace, braces placement, line lengths, and other syntactic formatting tasks automatically. This eliminates time spent performing manual formatting busywork.

Key features of Uncrustify include:

  • Formatting source code in C, C++, C#, ObjectiveC, D, Java, Pawn and VALA programming languages
  • Customizable formatting rules via configuration files
  • Indentation and spacing control
  • Brace alignment and placement
  • Wrapping long lines and statements
  • Reformatting embedded SQL and documentation comments

By using Uncrustify's rule-based formatting configurations, development teams can save time, reduce formatting inconsistencies, improve readability, and follow style guidelines more easily across large projects involving many programmers.

Uncrustify Features

Features

  1. Formats C, C++, C#, ObjectiveC, D, Java, Pawn and VALA code
  2. Indents code blocks, spaces code properly, and adds newlines
  3. Configurable formatting rules via config file
  4. Supports multiple coding styles like Allman, Java, GNU, Whitesmith, etc
  5. Command line interface and plugins for editors
  6. Cross-platform (Windows, Linux, Mac)

Pricing

  • Open Source

Pros

Open source and free

Powerful automated formatting capabilities

Highly configurable formatting rules

Supports many languages and coding styles

Integrates with common editors and build tools

Cons

Steep learning curve for configuration files

Formatting can be slow on large codebases

No GUI for configuration

Limited documentation and support resources

Formatting rules may not handle all edge cases

Reviews & Ratings

Login to Review
No reviews yet

Be the first to share your experience with Uncrustify!

Login to Review

The Best Uncrustify Alternatives

Top Development and Code Formatting and other similar apps like Uncrustify

No alternatives found for Uncrustify. Why not suggest an alternative?