This is a vscode extension for formatting your Racket
code files (forked from Shuumatsu/racket-pretty-printer).
Format your racket code using DrRacket's indentation settings or Racket's pretty-function.
Use command format-racket
or turn on "format on save" to use this extension.
Before:
(+ 1
2
3)
After (indentation mode):
(+ 1
2
3)
After (pretty-print mode):
(+ 1 2 3)
Make sure you have racket
installed and placed in path.
{
"racket-formatter.formatingMode": ["indentation", "pretty print"]
}
Enjoy!