haskell-language-server icon indicating copy to clipboard operation
haskell-language-server copied to clipboard

Should we use 2 spaces for indentation in HLS?

Open fendor opened this issue 4 months ago • 3 comments

The .editorconfig specifies indent_size = 4.

To be honest, I prefer 2 :)

The plugins generally do not have a unified indentation style or code style, some use 2 and some use 4.

Should we change the .editorconfig to suggest indent_size = 2?

fendor avatar Aug 22 '25 08:08 fendor

vote for 2. 🙋

soulomoon avatar Aug 22 '25 11:08 soulomoon

For clarification, this issue does not propose that we change any existing code, rather that the default, if we agree to do it, should be 2, and all new code should (but doesn't have to) use indentation 2.

fendor avatar Aug 22 '25 13:08 fendor

I find it pretty frustrating. While editorconfig has 4, we use 2 in many places, and it really confuses my editor.

sgillespie avatar Aug 29 '25 20:08 sgillespie