Weird auto-formatting on refactor
Answered
When I change the signature of a method - for example let's say I add a parameter to a method using the refactor tool, IntelliJ messes up the formatting. Screen recording in comments below
Please sign in to leave a comment.
I could not reproduce that: https://i.imgur.com/RZTaAqh.png
Does it help to set "Leine Breaks" to true under "Settings (Preferences on macOS) | Editor | Code Style | Java | Wrapping and Braces | Keep when reformatting"?
Is it possible to reproduce that on a sample class and attach it here?
Hmm the "Line Breaks" setting was already set to true for me under "Preferences | Editor | Code Style | Scala | Wrapping and Braces | Keep when reformatting" (using Scala here by the way)
Here's a screen recording of it happening on a sample class:
https://streamable.com/1ve1cc
Oh, it is Scala. Here is a bug for that behavior: https://youtrack.jetbrains.com/issue/SCL-10102
Feel free to vote and follow.
Thanks for pointing me to that - appreciate it!