durkiewicz / elm-plugin

Elm language support plugin for IntelliJ IDEA.
MIT License
136 stars 15 forks source link

Correct auto indentation #49

Closed zummenix closed 6 years ago

zummenix commented 7 years ago

In almost all cases when I'm typing the auto indentation is wrong. For example:

inc : Int -> Int
inc n =
<caret>

expected:

inc : Int -> Int
inc n =
    <caret>

For if then else and case of expressions it also doesn't work as expected.

mordrax commented 7 years ago

@zummenix not sure if you're aware, but the community standard is to use https://github.com/avh4/elm-format There is instructions in the repo to have it format on save and afaik, this is going to be merged into elm core in the coming versions.

zummenix commented 7 years ago

@mordrax I use elm-format and absolutely love it. I'm not sure how elm-format can help with indentation when you fast typing in the IDE.

mordrax commented 7 years ago

I assign it to a shortcut, so just type whatever and hit Ctrl+B, F for format, Ctrl+B, B for build, Ctrl+B, D for build --debug

BinaryHexer commented 6 years ago

It would be better if elm-format is integrated into this plugin and set to execute at save (or auto-save if you have that enabled).

durkiewicz commented 6 years ago

Thank you in your interest in the plugin. I'm sorry to say that this repository is no longer maintained due to lack of resources. If you need an Elm language support in IntelliJ - please consider using this plugin instead.