Look at Eclipse:
and in Idea:
So, how can I make Idea collapse multiline String like Eclipse?
Select code constructs In the editor, place the caret at the item you want to select and press Ctrl+W / Ctrl+Shift+W to extend or shrink your selection.
you can use Ctrl+Shift+Minus to collapse all of them and then use Ctrl+Alt+Plus to open one of that recursively.
Unfortunately, it seems there are no folding options for string literals.
You could try using custom folding tags, but this could will require extra comments for every string:
To check all existing folding options go to Settings > Editor > General > Code Folding
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With