anyformatter-vscode
v0.1.0
Published
VS Code extension for formatting any file using external command
Readme
anyformatter-vscode
VS Code extension for formatting any file using external command.
Usage
- Install https://github.com/lxl66566/anyformatter-vscode
- Edit
settings.jsonto add your formatter command and arguments. Example:"anyformatter": { "toml": { "command": "taplo fmt -" }, "nix": { "command": "nixfmt -" } }, - Set anyformatter as default formatter.
"[toml]": { "editor.formatOnSave": true, "editor.defaultFormatter": "lxl66566.anyformatter-vscode" }, "[nix]": { "editor.formatOnSave": true, "editor.defaultFormatter": "lxl66566.anyformatter-vscode" },
Note that the external formatter must be able to accept stdin and output to stdout.
