有没有办法在 android studio a la outline/outshine-mode 在 emacs 中通过评论来安排折叠?
换句话说,这段代码
class SomeClass {
// * group of related methods 1
void method1() { ... }
void method2() { ... }
void method3() { ... }
void method4() { ... }
// * group of related methods 2
void method1() { ... }
void method2() { ... }
void method3() { ... }
void method4() { ... }
// * group of related methods 3
void method1() { ... }
void method2() { ... }
void method3() { ... }
void method4() { ... }
}
像这样卷起来
class SomeClass {
// * group of related methods 1 ... (типо свернули)
// * group of related methods 2
void method1() { ... }
void method2() { ... }
void method3() { ... }
void method4() { ... }
// * group of related methods 3 ... (типо свернули)
将所需的代码添加到标签中:
箭头将出现在左侧,您可以折叠/展开该区域。