Format HTML, CSS, JavaScript, PHP, Python, Ruby, Java, C, C++, C#, Objective-C, CoffeeScript, TypeScript, SQL, and more in Visual Studio Code
Some of the supported formatters are developed for Node.js and are automatically installed when UniFormatter is installed. However, other formatters are command-line interface (CLI) applications and require you to manually install them.
| Language |
Supported Formatters |
| Bash |
✅ beautysh |
| Bat |
|
| Bibtex |
|
| C |
✅ Uncrustify, ✅ clang-format |
| Clojure |
✅ cljfmt |
| CoffeeScript |
✅ coffee-fmt, Coffee Formatter |
| C++ |
✅ clang-format, ✅ Uncrustify |
| C# |
✅ Uncrustify |
| CSS |
✅ JS Beautify, ✅ Pretty Diff, SassConvert |
| Dockerfile |
dockfmt |
Erlang |
erl_tidy |
| F# |
|
Fortran |
Fortran Beautifier |
GLSL |
✅ clang-format |
| Go |
gofmt, goimports |
| Groovy |
|
| Handlebars |
✅ JS Beautify, ✅ Pretty Diff |
Haskell |
stylish-haskell |
| HTML |
✅ JS Beautify, ✅ Pretty Diff |
| Ini |
|
| Jade |
✅ Pug Beautify |
| Java |
✅ Uncrustify |
| JavaScript |
✅ JS Beautify, ESLint Fixer, JSCS Fixer, ✅ Pretty Diff |
| JSON |
✅ JS Beautify, ✅ Pretty Diff |
| LaTeX |
✅ Latex Indent |
| LESS |
✅ Pretty Diff, ✅ CSScomb |
| Lua |
Lua beautifier |
| Makefile |
|
| Markdown |
✅ Tidy Markdown, Remark |
| Objective-C |
✅ Uncrustify, ✅ clang-format |
| Objective-C++ |
✅ Uncrustify, ✅ clang-format |
OCaml |
ocp-indent |
Pawn |
✅ Uncrustify |
| Perl |
Perltidy |
| Perl6 |
Perltidy |
| PHP |
PHP-CS-Fixer, PHPCBF, hh_format |
| Powershell |
|
| Python |
✅ autopep8, pybeautifier, yapf |
| R |
formatR |
| Razor |
|
| Ruby |
Rubocop, ✅ Ruby Beautify |
| Rust |
rustfmt |
| Sass |
SassConvert |
| SCSS |
✅ Pretty Diff, ✅ CSScomb, SassConvert |
| Shaderlab |
|
| Swift |
|
| SQL |
✅ sqlformat |
| Tex |
|
| TypeScript |
TypeScript Formatter |
| VB |
|
| XML |
✅ Pretty Diff, ✅ JS Beautify |
| XSL |
|
| YAML |
✅ align-yaml |
| Formatter |
status |
| align-yaml |
✅ Done |
| autopep8 |
✅ Done |
| beautysh |
✅ Done |
| clang-format |
✅ Done |
| cljfmt |
✅ Done |
| Coffee Formatter |
❌ TODO |
| coffee-fmt |
✅ Done |
| dockfmt |
❌ TODO |
| erl_tidy |
❌ TODO |
| ESLint Fixer |
❌ TODO |
| formatR |
❌ TODO |
| Fortran Beautifier |
❌ TODO |
| gofmt |
❌ TODO |
| goimports |
❌ TODO |
| hh_format |
❌ TODO |
| HTML Beautifier |
❌ TODO |
| JS Beautify |
✅ Done |
| JSCS Fixer |
❌ TODO |
| Latex Indent |
✅ Done |
| Lua beautifier |
❌ TODO |
| ocp-indent |
❌ TODO |
| Perltidy |
❌ TODO |
| PHP-CS-Fixer |
❌ TODO |
| PHPCBF |
❌ TODO |
| Pretty Diff |
✅ Done |
| Pug Beautify |
✅ Done |
| pybeautifier |
❌ TODO |
| Remark |
❌ TODO |
| Rubocop |
❌ TODO |
| Ruby Beautify |
✅ Done |
| rustfmt |
❌ TODO |
| SassConvert |
❌ TODO |
| sqlformat |
✅ Done |
| stylish-haskell |
❌ TODO |
| Tidy Markdown |
✅ Done |
| TypeScript Formatter |
❌ TODO |
| Uncrustify |
✅ Done |
| Vue Beautifier |
❌ TODO |
| yapf |
❌ TODO |
MIT © Lu Yiming