repl-repl makes it dead simple to evaluate Clojurescript code directly from your editor. Instant feedback with syntax highlighting is delivered straight to your Chrome DevTools console.
This extension is designed to be used in tandem with Figwheel.
IMPORTANT: Make sure you have enabled custom formatters in Chrome DevTools. This is necessary because formatting and syntax highlighting of the evaluated code in Chrome DevTools Console relies on cljs-devtools, which is bundled with Figwheel by default.
This extension will also work with shadow-cljs or boot, although you will need to include cljs-devtools as a dependency in your project, and make sure that you've enabled cljs-devtools in your project. Again, you will need to enable custom formatters in Chrome DevTools.
Based on where the cursor is, you can do one of the following:
Evaluate Outermost Form
Evaluate Current Form
Evaluate Current Expression
Log Wrap Outer Form
Log Wrap Current Form
Log Wrap Current Expression
Remove Log Wrap
Feel free customize these keybindings to suit your needs.
You can also access the commands above by opening the command pallette (