C++ Formatter Beautifier
Format common code, data, markup, and document languages locally in your browser.
Format common code, data, markup, and document languages locally in your browser.
This C++ formatter re-indents code by breaking lines at braces and semicolons and indenting nested blocks by two spaces, which quickly expands one-line class and function definitions. Note that for-loop headers are also split at their semicolons.