This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-09-10
Channels
- # admin-announcements (1)
- # beginners (109)
- # boot (59)
- # cljs-dev (1)
- # clojure (101)
- # clojure-android (1)
- # clojure-denmark (4)
- # clojure-france (1)
- # clojure-japan (5)
- # clojure-russia (39)
- # clojurescript (186)
- # clojurex (3)
- # clojutre (2)
- # cursive (20)
- # datomic (6)
- # devops (6)
- # events (3)
- # hoplon (25)
- # jobs (1)
- # ldnclj (5)
- # off-topic (4)
- # reagent (3)
- # ring (2)
@cfleming: If I have my Code Styles set to Project, where do custom indentation settings go?
@danielcompton: Do you mean in which file?
I don’t see anything in codeStyleSettings.xml
@danielcompton: In .idea/codeStyleSettings.xml you should see a <ClojureCodeStyleSettings> block
I see it, but it only has:
<ClojureCodeStyleSettings>{
:cursive.formatting/align-binding-forms true
:cursive.formatting/comment-align-column 0
:cursive.formatting/imports-use-vectors true
}</ClojureCodeStyleSettings>
It doesn’t have my custom symbol indentations
If you add a new indentation, and switch away from IntelliJ and back again (to ensure it persists the changes), you don’t see it added?
@cfleming: the issue was I had two projects open, and was formatting the sub (checkout) project and looking at it’s codestylesettings, but the changes were applied to the main project
They show up in the main project
@cfleming: yeah exactly
@danielcompton: Right, IntelliJ only stores the config in one place for a single (IntelliJ) project.
What do the different indentation parameters mean?
My intuitive understanding is that it counts how many parameters will have their indentation position ignored before computing the indent level
I've changed several things to Indent
so that they indent 2 spaces rather than lining up way to the right - can't think of what, specifically, atm