- A simple sexp pretty printer or chicken scheme code formatter which works on stdin / stdout.
sudo chicken-install scmfmt
or clone the repo, enter the directory and exectue
sudo chicken-install
This will place an scmfmt executable in your PATH.
scmfmt < yourFile.scm
You can also:
- use vscode extension named "External formatters" to enable this extension if you add
"externalFormatters.languages": {
"scheme": {
"command": "scmfmt",
}
}
to settings.json located in ~/.config/Code/User/settings.json or @ext:steefh.external-formatters.
Once enabled you can use Ctrl-Shift+I to format the document/file containing the code.