A CIDER extension that provides powerful commands for refactoring Clojure code. clj-refactor provides powerful refactoring functionality for Clojure projects. It complements the refactoring functionality you'd find in clojure-mode and CIDER. The more advanced refactorings require our nREPL middleware refactor-nrepl. From version 2.2.0 onwards if cider-jack-in is used it is injected automatically. profiles.clj or profile.boot don't need to be modified anymore for the above usecase! On the other hand if a standalone REPL or an embedded nREPL server is used you will need to manually add this dependency. The analyzer refactor-nrepl uses needs to eval the code too in order to be able to build the AST we can work with. If that causes side effects like writing files, opening connections to servers, modifying databases, etc. performing certain refactoring functions on your code will do that, too.
Features
- It's available on MELPA and MELPA Stable
- All functions in clj-refactor have a two-letter mnemonic shortcut
- clj-refactor provides powerful refactoring functionality for Clojure projects
- It complements the refactoring functionality you'd find in clojure-mode and CIDER
- The more advanced refactorings require our nREPL middleware refactor-nrepl
- clj-refactor has quite a few settings you can tweak to change the behavior of various commands