8

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?

Community
  • 1
  • 1
Senjou Zhu
  • 81
  • 3

2 Answers2

4

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.

arghtype
  • 4,376
  • 11
  • 45
  • 60
0

You can try CMD + .

CMD + . on Strings to fold them

CMD + . on Strings to fold them

Suraj Rao
  • 29,388
  • 11
  • 94
  • 103