Rename Refactoring Wraps Long Lines Arbitrarily Follow
Hi,
I've encountered several occurrences of lines being hard-wrapped (a newline plus indent inserted) at the configured Right Margin (Settings -> Code Style -> General). (The "Wrap when typing reaches right margin" option is off / deselected / unchecked.)
This hard wrapping occurs regardless of where the margin falls in the line, including in the middle of strings and identifiers.
Version Information:
- IDEA: 10.5 (#107.105)
- Scala Plug-in: 1075 and 1080
- Java: 1.6.0_22-b04-307-10M3326 Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)
- OS: Mac OS X 10.6.7
Randall Schulz
Please sign in to leave a comment.
Can you provide an example, screenshots? I can't understand what problem exactly.
Best regards,
Alexander Podkhalyuzin.
I've done all the refactoring I'll be doing for some time, but I guess I'll grab a screen shot when it next happens.
Are you saying you do not understand from my description what happens?
When I do a rename refactoring and a line that is longer than the configured wrap margin contains the name that was changed, the line is broken (with the insertion of a newline and the current indent) at the wrap margin, regardless of where that falls in the line. That means it will split an identifier or a string in many cases.
Randall Schulz