{ "config": { "auto_format_on_save": false }, "formatters": [ { "language": ["javascript", "typescript", "jsx", "tsx", "html"], "file_patterns": ["%.js$", "%.ts$", "%.jsx$", "%.tsx$", "%.[mp]?html?$"], "command": "prettier $FILENAME", "url": "https://prettier.io" }, { "language": ["c", "cpp", "objective-c", "objective-cpp", "java"], "file_patterns": ["%.inl$", "%.cpp$", "%.hpp$", "%.cc$", "%.cxx$", "%.c++$", "%.hh$", "%.hxx$", "%.h++$", "%.objcpp$", "%.m$", "%.mm$", "%.java$"], "command": "clang-format --style=file $FILENAME", "url": "https://clang.llvm.org/docs/ClangFormat.html", "prefer_lsp_formatter": true }, { "language": "python", "file_patterns": ["%.py$", "%.pyw$"], "command": "ruff format $FILENAME", "type": "inplace", "url": "https://black.readthedocs.io/en/stable/" }, { "language": "kotlin", "file_patterns": ["%.kt$"], "command": "ktlint -F $FILENAME", "type": "inplace", "url": "https://pinterest.github.io/ktlint/" }, { "language": "rust", "file_patterns": ["%.rs$"], "command": "rustfmt --emit stdout --color never $FILENAME", "url": "https://rust-lang.github.io/rustfmt/" }, { "language": "go", "file_patterns": ["%.go$"], "command": "gopls format $FILENAME", "url": "https://pkg.go.dev/golang.org/x/tools/gopls" }, { "language": "json", "file_patterns": ["%.json$", "%.cson$"], "command": "json", "type": "native", "url": "#native" }, { "language": [ "xml" ], "file_patterns": ["%.xml$"], "command": "xml", "type": "native", "url": "#native" }, { "language": "css", "file_patterns": ["%.css$"], "command": "css", "type": "native", "url": "#native" }, { "language": "zig", "file_patterns": ["%.zig$"], "command": "zig fmt $FILENAME", "type": "inplace", "url": "https://ziglang.org", "prefer_lsp_formatter": true }, { "language": "haskell", "file_patterns": ["%.hs$"], "command": "ormolu $FILENAME", "url": "https://github.com/tweag/ormolu" }, { "language": "v", "file_patterns": ["%.v$"], "command": "v fmt $FILENAME", "url": "https://vlang.io" }, { "language": "lisp", "file_patterns": ["%.lisp$", "%.cl$", "%.el$"], "command": "ros fmt $FILENAME", "url": "https://github.com/roswell/roswell" } ] }