Run elm-format via a keyboard shortcut or automatically whenever you save a file.
This is useful for Elm projects with many team members. You can save time in code review if your files are just always formatted this way.
If format-on-save is enabled, this feature may lead to slight delays (<500ms) when saving.
- Open IntelliJ Settings.
- Select Languages & Frameworks from the left-side pane
- Select Elm
- Fill out the section titled elm-format (use the Auto Discover button to search common locations)