Forrest logo
tool overview
On this page you find all important commands for the CLI tool uncrustify. If the command you are looking for is missing please ask our AI.

uncrustify

Uncrustify is a command line tool used for formatting and beautifying source code in different programming languages. It supports over 40 languages, including popular ones like C, C++, Java, and Python. The main purpose of Uncrustify is to standardize the formatting of code according to predefined rules. It can be configured with various formatting options and style rules to suit the user's preferences. The tool can be integrated with code editors and IDEs to automatically format code on the fly. Uncrustify is highly customizable, allowing users to define their own formatting rules and modify existing ones. Additionally, it supports different output formats, such as directly modifying the source file or creating a reformatted copy. Uncrustify is open source, meaning its source code is freely available for modification and redistribution. It has a large and active community of users, which provides support and regular updates. Overall, Uncrustify is a powerful and versatile tool for developers looking to maintain consistent code formatting across projects and teams.

List of commands for uncrustify:

  • uncrustify:tldr:04ff0 uncrustify: Generate a new configuration file.
    $ uncrustify --update-config -o ${path-to-new-cfg}
    try on your machine
    explain this command
  • uncrustify:tldr:13e6a uncrustify: Explicitly set a configuration variable's value.
    $ uncrustify --set ${option}=${value}
    try on your machine
    explain this command
  • uncrustify:tldr:5dbce uncrustify: Use a custom configuration file and write the result to `stdout`.
    $ uncrustify -c ${path-to-uncrustify-cfg} -f ${filename-cpp}
    try on your machine
    explain this command
  • uncrustify:tldr:a6aa4 uncrustify: Format a single file.
    $ uncrustify -f ${filename-cpp} -o ${path-to-output-cpp}
    try on your machine
    explain this command
tool overview