This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-10
Channels
- # announcements (3)
- # babashka (16)
- # beginners (41)
- # biff (4)
- # calva (14)
- # circleci (1)
- # clj-http (24)
- # clj-kondo (9)
- # clj-on-windows (31)
- # cljs-dev (52)
- # clojure (162)
- # clojure-australia (10)
- # clojure-europe (52)
- # clojure-nl (2)
- # clojure-spec (1)
- # clojure-uk (5)
- # clojurescript (40)
- # conjure (6)
- # core-async (3)
- # cursive (5)
- # datalevin (11)
- # datomic (7)
- # emacs (12)
- # etaoin (19)
- # events (1)
- # figwheel-main (17)
- # fulcro (4)
- # graalvm (3)
- # gratitude (13)
- # honeysql (8)
- # introduce-yourself (7)
- # london-clojurians (1)
- # off-topic (9)
- # polylith (9)
- # rdf (1)
- # re-frame (21)
- # releases (5)
- # remote-jobs (4)
- # sci (28)
- # shadow-cljs (15)
- # spacemacs (2)
- # vim (4)
- # xtdb (15)
So I type (try
and then hit return and now my code looks like this:
(when-let [^State state (:state-ref (meta me))]
((try
(catch Exception e
))(.setState state (fn [] (do)))))
Kinda cool because I always struggle to remember all that, but...why is that happening? Is cursive doing that, or do I have some unknown plugin doing that?
Anyone know how to make this stop? Thx!But on mine the default is it expands with TAB, not Enter, so I wonder why it is doing that for you if you haven't changed it
Yes, that sounds like the live template. I’ve actually found them expanding unexpectedly recently too, what I suspect is happening is that IntelliJ is adding them to the autocomplete, and you have to pay attention to see whether what’s being completed is the symbol (e.g. try
) or the live template.
Finally dug into this and tested a bit. I do get the expansion on both tab and return, tho the setting si for tab. Anyway, not a feature I need so I just turned it off. Thx for the pointer to the relevant pref, @U08JKUHA9! 🙏