This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-14
Channels
- # beginners (110)
- # boot (50)
- # cider (29)
- # cljs-dev (80)
- # cljsrn (10)
- # clojure (54)
- # clojure-italy (3)
- # clojure-korea (24)
- # clojure-russia (50)
- # clojure-spec (12)
- # clojure-taiwan (1)
- # clojure-uk (67)
- # clojurebridge (14)
- # clojurescript (118)
- # component (3)
- # cursive (11)
- # datomic (28)
- # dirac (31)
- # emacs (45)
- # flambo (2)
- # hoplon (53)
- # immutant (3)
- # jobs (5)
- # mount (8)
- # off-topic (10)
- # om (5)
- # onyx (52)
- # other-languages (2)
- # parinfer (1)
- # pedestal (1)
- # proton (39)
- # protorepl (2)
- # re-frame (22)
- # remote-jobs (1)
- # ring (13)
- # ring-swagger (2)
- # test-check (9)
- # untangled (28)
- # vim (12)
@borkdude No, that’s Optimise Imports, there’s an issue for that and I’m hoping to do it soon. That will include sorting imports/requires etc as well.
You can however clean them all up at once. Press Alt-Enter, and you’ll get the intention to remove them.
Hit right arrow and you’ll get a submenu, and you can clean them all up in a single file at once.
If you want to get really tricky, you can use Analyze->Run Inspection By Name…, search for Unused Import under the Clojure heading, and run it over your whole project. You can then clean the whole project at once by selecting “Apply Fix” in the results toolwindow.
@denik See https://cursive-ide.com/archive/644.html for some discussion and a proposed solution (which I still haven’t gotten around to)