Multi-language formatting plugin for the Micro editor
git cloneandmake- Install whichever formatters you want to use
- Run
fmtto format the current file. - Files will be formatted on save, unless
autofmt.fmt-onsaveis set to false (withCtrl-e > set autofmt.fmt-onsave false).
| Language | Formatter |
|---|---|
| C/C++/C# | clang-format |
| Python | yapf |
| Racket | fmt |
| JavaScript | prettier |
| Rust | rustfmt nightly |
| Go | gofmt |
| Solidity | forge fmt |
This project is intended as a replacement for the now-dead fmt-micro. o7
All contributions are welcome by pull request or issue.
micro-autofmt is licensed under the GNU General Public License v3.0. See LICENSE for full text.