Simple method wrapping problems with 13
I've been having strange method wrapping/not-wrapping issues in 13 lately. When I load a java file, short methods will unwrap themselves, like so:
public Long getId() { return id; }
Using the "Reformat" option does nothing to it. However, if I start to modify the method, or just next-word through it, it will suddenly wrap "correctly" like so:
public Long getId() {
return id;
}
If I close and reopen the file, it "unwraps" again until I start to modify/navigate the method again. It only happens to short, single-line methods like simple getters/setters. This is with 13.0.1, 13.0.3, and 13.1. I have dug through all the various code style options and can't find any combination that seems to make it stop doing this. I know I'm probably missing something obvious, but I'd appreciate if someone has a solution to this problem.
Thanks
Please sign in to leave a comment.
Hello.
This is just visual presentation, the file is not changed on this folding / unfolding. So, it's not Code Style, it's Settings / Editor / Code Folding / Collapse by default / One-line methods.
Regards,
Alexander.
That was it! I knew it was going to be something simple I was overlooking. Thanks so much!