在Android Studio中使用// region折叠错误

时间:2015-01-25 17:29:31

标签: android-studio folding

在Android Studio中创建一个位于另一个区域的结束标记下的区域后,代码向上折叠到前一个区域的结束标记,而不是向下折叠数百行代码到我的// endregion标记新区域。

我查看了Android Studio中的Cold Folding设置。但似乎没有任何帮助。

我错过了什么?如果它不能折叠数百或数千行,折叠就没用了。

Example of folding problem

3 个答案:

答案 0 :(得分:5)

更新截至2015年9月13日:我认为此问题现已解决。我成功地在所有文件中都可以>>> from sympy import Symbol, Poly >>> x = Symbol('x') >>> Poly([1,2,3], x) Poly(x**2 + 2*x + 3, x, domain='ZZ') Here is the actual answer

答案 1 :(得分:1)

我的回答: 我没有使用左边的箭头折叠,而是使用" ctrl" +" - " 或使用" ctrl" +"转移" +" - "折叠所有。

答案 2 :(得分:1)

这似乎是Android Studio IDE的一个错误功能。有一些不同的解决方法described here

code.google.com上有一个缺陷,标记为已关闭'对于Android Studio 2.2。