在Android Studio中,有两种代码折叠选项。一种是编辑器折叠标记(
我使用了这两种选项实现代码折叠,但从来没有理解它们之间的区别。
<editor-fold desc="Description">
),另一种是区域注释(//region Description
)。我使用了这两种选项实现代码折叠,但从来没有理解它们之间的区别。
<editor-fold desc="Description">
),另一种是区域注释(//region Description
)。< editor-fold..>
提供了NetBeans折叠样式,而 region..endregion
则提供了VisualStudio折叠样式。