Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I set Idea collapse too long string?

Look at Eclipse:

enter image description here

and in Idea:

enter image description here

So, how can I make Idea collapse multiline String like Eclipse?

like image 507
Senjou Zhu Avatar asked Feb 15 '17 06:02

Senjou Zhu


People also ask

How do I shrink code in IntelliJ?

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.

How do you collapse all methods in rider?

you can use Ctrl+Shift+Minus to collapse all of them and then use Ctrl+Alt+Plus to open one of that recursively.


1 Answers

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:

enter image description here

To check all existing folding options go to Settings > Editor > General > Code Folding.

like image 51
arghtype Avatar answered Oct 21 '22 11:10

arghtype