Tool Overview
This tool formats C/C++ code with indentation cleanup and sample loading for interview snippets, embedded work, code review, and pre-commit cleanup.
Key Features
- Supports 2-space indentation and 4-space indentation.
- Includes sample loading, result copy, and dual-panel comparison.
- Works with common C and C++ snippets, class definitions, conditions, and loops.
- Keeps processing in the browser without uploading code.
Steps
- Paste C or C++ code into the left panel.
- Pick the indent style you want.
- Run the formatter and copy the processed result.
Use Cases
- Clean interview snippets and algorithm answers.
- Normalize indentation before review or commit.
- Tidy embedded development code and small utility fragments.
Notes
- The tool does not compile or execute code and only processes text.
- Review the result manually when the source relies on complex macros, conditional compilation, or custom alignment rules.