10

After creating a region in Android Studio, located under the end tag of another region, the code folds upward to the end tag of the previous region instead of folding downward through hundreds of lines of code to my //endregion tag for the new region.

I looked at the settings in Android Studio for Cold Folding. But it seems nothing there helps.

What am I missing? Folding is useless if it can't fold hundreds or thousands of lines.

Example of folding problem

CJBS
  • 15,147
  • 6
  • 86
  • 135
fernforce
  • 163
  • 2
  • 8

3 Answers3

8

Update as on 13-Sep-2015: I believe that this issue is fixed now. I am successfully able to do //region in all my files Here is the actual answer

1

My answer: Instead of folding using the arrows on the left just I just used "ctrl" + "-" Or used "ctrl" + "shift" + "-" to fold all.

fernforce
  • 163
  • 2
  • 8
1

This seems like a buggy feature of the Android Studio IDE. There are some various work-arounds described here.

There's a defect filed for this on code.google.com, which, is marked as 'closed' for Android Studio 2.2.

Community
  • 1
  • 1
CJBS
  • 15,147
  • 6
  • 86
  • 135