Auto-format on the fly not using the same rules as format on save

I am using 2024.1, but this has been an ongoing issue with previous versions as well, though it is immensely aggravated by the frequency with which the current version tries to reformat my code.

Basically, I have my formatter set to scalafmt, and if I manually do cmd-s, the file is formatted as I want - specifically, the imports are grouped correctly and don't exceed the line width limit.  However, the auto-saving uses some other formatting rules that screw up all the imports.  I _want_ auto-save, and I'd be happy to have auto-formatting on autosave _if_ it used the correct rules.

 

Thanks

0

请先登录再写评论。