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

 

0
4 comments

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? 

0
Avatar
Permanently deleted user

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

0

Oh, it is Scala. Here is a bug for that behavior: https://youtrack.jetbrains.com/issue/SCL-10102

Feel free to vote and follow. 

1
Avatar
Permanently deleted user

Thanks for pointing me to that - appreciate it!

0

Please sign in to leave a comment.