Fork me on GitHub
#cursive
<
2015-09-10
>
danielcompton04:09:38

@cfleming: If I have my Code Styles set to Project, where do custom indentation settings go?

cfleming04:09:59

@danielcompton: Do you mean in which file?

danielcompton04:09:12

I don’t see anything in codeStyleSettings.xml

cfleming04:09:50

@danielcompton: In .idea/codeStyleSettings.xml you should see a <ClojureCodeStyleSettings> block

danielcompton04:09:05

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>

danielcompton04:09:05

It doesn’t have my custom symbol indentations

cfleming05:09:00

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?

danielcompton10:09:27

@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

danielcompton10:09:27

They show up in the main project

cfleming11:09:21

Ah, ok - that’s two lein projects within one IntelliJ project, right?

cfleming20:09:25

@danielcompton: Right, IntelliJ only stores the config in one place for a single (IntelliJ) project.

danielcompton22:09:01

What do the different indentation parameters mean?

tel22:09:49

My intuitive understanding is that it counts how many parameters will have their indentation position ignored before computing the indent level

tel22:09:03

so setting it to 1 replicates let indentation

tel22:09:25

and I’ve never had to set it to anything else simple_smile

meow22:09:10

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

meow22:09:08

I'm not a big fan of stuff lined up way on the right, in general, especially when trying to keep code within 80 chars

meow22:09:13

In general that setting is a bit of a mystery to me and I just worked it out by trial-and-error but would love an expert description of how it works