Is it possible to configure macro indentations in Cursive? I see the “Intentions > Clojure > Indentation” in Options, but I don’t see any way to affect it.
E.g., I’m using (jdbc/with-db-connection [conn {:datasource d}] (my-long-expression))
, and IntelliJ keeps wanting to format it like
(jdbc/with-db-connection [conn {:datasource d}]
(my-long-expression))
, when the sensible thing would be
(jdbc/with-db-connection [conn {:datasource d}]
(my-long-expression))
Even just cond->
wants to be aligned like the first example, when the styleguide says it should be aligned like the second.
(The styleguide = https://github.com/bbatsov/clojure-style-guide#body-indentation )
@reefersleep see https://cursive-ide.com/userguide/formatting.html#code-style-settings
I believe you have to select 1
to get it formatted the way you want
Thanks a bunch, I’ll have a lok at that!
np mate