Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>cljfmtNew to Visual Studio Code? Get it now.

cljfmt

Pedro Girardi

|
3,830 installs
| (0) | Free
Format Clojure & EDN.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

cljfmt

cljfmt

This extension is a cljfmt wrapper to provide document and range formatting.

Configuration

cljfmt.indentation - true if cljfmt should correct the indentation of your code. Defaults to true.

cljfmt.insertMissingWhitespace - true if cljfmt should insert whitespace missing from between elements. This will convert (foo(bar)) to (foo (bar)). Defaults to true.

cljfmt.removeSurroundingWhitespace - true if cljfmt should remove whitespace surrounding inner forms. This will convert ( foo ) to (foo). Defaults to true.

cljfmt.removeTrailingWhitespace - true if cljfmt should remove trailing whitespace in lines. This will convert (foo) \n to (foo)\n. Defaults to true.

Note

If you are looking for a Clojure & ClojureScript programming environment for Visual Studio Code, it's a good idea to check Calva and the other extensions.

If you already have Calva installed, please be aware that formatting may not work properly since both extensions will try to format your code.

Acknowledgement

Thank you, James Reeves!

Written in ClojureScript

Built with Shadow CLJS.

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft