Structural editing and navigation for Clojure and other LISPs
This is a Paredit extension for Visual Studio Code. It is a thin wrapper around paredit.js. You find it inside Code's extansion view and on the Marketplace.
Inspired by Atom's lisp-paredit
Default keybinding | Action |
---|---|
ctrl+right | Forward Sexp |
ctrl+left | Backward Sexp |
ctrl+down | Forward Down Sexp |
ctrl+up | Backward Up Sexp |
ctrl+alt+right | Close List |
Default keybinding | Action |
---|---|
ctrl+w | Expand Selection |
ctrl+shift+w | Shrink Selection |
ctrl+alt+w space | Select Current Top Level Form |
Default keybinding | Action |
---|---|
ctrl+alt+. | Slurp Forward |
ctrl+alt+< | Slurp Backward |
ctrl+alt+, | Barf Forward |
ctrl+alt+> | Barf Backward |
ctrl+alt+s | Splice |
ctrl+alt+/ | Split Sexp |
cmd-delete | Kill Sexp Forward |
cmd-backspace | Kill Sexp Backward |
ctrl+alt+down | Splice & Kill Forward |
ctrl+alt+up | Splice & Kill Backward |
ctrl+alt+( | Wrap Around () |
ctrl+alt+[ | Wrap Around [] |
ctrl+alt+{ | Wrap Around {} |
ctrl+alt+i | Indent |
--- | Transpose |
Default keybinding | Action |
---|---|
ctrl+alt+c ctrl+right | Copy Forward Sexp |
ctrl+alt+c ctrl+left | Copy Backward Sexp |
ctrl+alt+c ctrl+down | Copy Forward Down Sexp |
ctrl+alt+c ctrl+up | Copy Backward Up Sexp |
ctrl+alt+c ctrl+alt+right | Copy Close List |
Default keybinding | Action |
---|---|
ctrl+alt+x ctrl+right | Cut Forward Sexp |
ctrl+alt+x ctrl+left | Cut Backward Sexp |
ctrl+alt+x ctrl+down | Cut Forward Down Sexp |
ctrl+alt+x ctrl+up | Cut Backward Up Sexp |
ctrl+alt+x ctrl+alt+right | Cut Close List |
The old Paredit extension, made by clptn seemed abandonded and I couldn't reach him. This extension takes off extactly where clptn left, which was a beautiful and clean extension, almost feature complete, and with just a few bugs. I intend to fix whatever bugs I and others find and have started to add the features I and others miss. I also intend to keep maintaining this extenson and if I find myself not able to do so I will try find another maintaner.
- Peter Strömberg
- Pedro Girardi
- You?
I also published and maintain Calva, another Visual Studio Code extension. Calva is aimed at making it super easy to get Clojure and Clojurescript coding done. It sports interactive REPLs, inline evaluation and other stuff people from the Emacs Cider world are used to.
PRs welcome, file an issue or chat @pez up in the #editors
channel of the Clojurians Slack. Tweeting @pappapez works too.
❤️