Clojure and ClojureScript support for Visual Studio Code.
If you are a ClojureScript user, please read this section carefully.
I'm trying, believe me!
Make sure that Leiningen is installed on your machine, open a Clojure file or project, wait until the extension will start nREPL and connect to it - now all the goodies should work :-)
- Code completion
- Code navigation
- Interaction with REPL
- Showing documentation on hover
- Code formatting (cljfmt)
- Function signatures
- Linting
- Debug
The extension has the experimental support of ClojureScript. The example of a ClojureScript project setup can be found here. Checkout the project profile.clj
file to learn what dependencies you need.
The embedded nREPL does not support ClojureScript, consider to use the "clojureVSCode.autoStartNRepl" setting. You will need to run an nREPL manually and execute the following commands inside it:
(require 'cljs.repl.node)
(cemerick.piggieback/cljs-repl (cljs.repl.node/repl-env))
After that you can connect to the nREPL using the "Clojure: Connect to a running nREPL" command. Now you can evaluate you ClojureScript code and use the other extension facilities.
Open an issue if you want to propose new features and ideas or to report bugs. If you want to help with some code and looking for a place to start, please check out the How to Contribute wiki page.