Skip to content

paintparty/repl-repl-vscode

Repository files navigation

⚠️ THIS EXTENSION HAS BEEN DEPRECATED AND MAY NO LONGER WORK THE WAY YOU EXPECT IT TO.

An extension with similar functionality which is tailored to working with the Clojure(Script) library Par is slated be released in Feb '23.



repl-repl

  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.  

Usage

This extension is designed to be used in tandem with hot-reloading ClojureScript workflow and the par debugging macro.

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.

 

Based on where the cursor is, you can do one of the following:

Evaluate On Point
Default keybinding: cmd-enter (mac), alt-enter (windows & linux)

Evaluate Current Form
Default keybinding: cmd-alt-enter (mac), alt-ctrl-enter (windows & linux)

Evaluate Outermost Form
Default keybinding: ctrl-cmd-alt-enter (mac), shift-ctrl-alt-enter (windows & linux)

Toggle js/console.log Wrap
This command will toggle a js/console.log wrap around the current form.

Toggle pprint Wrap
This command will toggle a pprint wrap around the current form.

Toggle Ignore Form
This command will toggle #_ in front of an expression or form.

Insert Print-And-Return Require
This command will insert a require form for the par.core macro.

Customize these keybindings to suit your needs.  

You can also access the commands above by opening the command pallette ( cmd-shift-p or ctrl-shift-p) and searching for "repl-repl"

 

Copyright © 2018-2022 JC

Example animation features the FiraCode font by tonsky

About

Integrated ClojureScript REPL package for Visual Studio Code →

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published