gitmyhub

CoolFormat

C++ ★ 51 updated 8y ago ⑂ fork

CoolFormat Source Code Formatter

A desktop tool that automatically reformats and color-highlights source code across 13 languages, like a word processor for code.

C++setup: easycomplexity 2/5

CoolFormat

CoolFormat is a tool that automatically cleans up and reformats source code to make it consistent and easier to read. Instead of manually adding spaces, aligning brackets, and fixing indentation across your codebase, you paste code into CoolFormat and it handles all that formatting work for you—much like how a word processor formats a document.

The tool supports thirteen programming languages, including popular ones like C++, Java, JavaScript, and Python, as well as markup languages like HTML and XML. Beyond just reformatting, it also color-codes your code by language (so keywords appear in one color, strings in another), which makes it much more readable. This dual feature—cleanup plus colorization—is particularly useful if you're writing technical blog posts or documentation where you want to show code examples that are both properly formatted and visually highlighted.

CoolFormat is designed primarily as a desktop application with a clean, modern interface, but it also integrates directly into popular code editors and IDEs. If you use Visual Studio, VSCode, Sublime Text, or Notepad++, you can install a plugin that lets you format code without leaving your editor. This makes it convenient for developers who want quick formatting without switching windows, as well as for technical writers who want to grab formatted, highlighted code snippets to paste into blog posts or articles.

The project is built on C++ and uses a professional-grade UI framework, which suggests it's a polished, standalone application rather than a lightweight command-line tool. The README indicates it's been around for a while (currently at version 3.5) and can be downloaded from SourceForge, with documentation and usage guides available online.

Where it fits