Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pedrorgirardi/vscode-cljfmt
Visual Studio Code extension for formatting Clojure code.
https://github.com/pedrorgirardi/vscode-cljfmt
Last synced: about 2 months ago
JSON representation
Visual Studio Code extension for formatting Clojure code.
- Host: GitHub
- URL: https://github.com/pedrorgirardi/vscode-cljfmt
- Owner: pedrorgirardi
- Created: 2018-10-08T12:23:04.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-01-08T11:28:28.000Z (about 1 year ago)
- Last Synced: 2024-05-01T13:26:06.571Z (9 months ago)
- Language: Clojure
- Homepage: https://marketplace.visualstudio.com/items?itemName=pedrorgirardi.vscode-cljfmt
- Size: 185 KB
- Stars: 4
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# cljfmt
![cljfmt](images/web.png)
This extension is a [**cljfmt**](https://github.com/weavejester/cljfmt) wrapper to provide document and range formatting for **Visual Studio Code**.
## 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](http://shadow-cljs.org/).