在写代码时,会遇到需要暂时注释掉一部分代码,又不能删除这些注释。如果注释掉很多行,看起来很不爽,请问怎样将大块的注释折叠起来?我知道在C#中可以通过#region #endregion的功能。
ringa_lee2017-04-24 09:12:05
Found a way. The plug-in com.cb.eclipse.folding_1.0.6.jar is required. (Usage is very simple, use Baidu by yourself)
The effect is Auntie Jiang’s:
Open:
Collapse:
PHP中文网2017-04-24 09:12:05
It's very simple, click the "little minus sign" on the left to collapse it.
伊谢尔伦2017-04-24 09:12:05
Eclipse shortcut keys:
Ctrl
+ Shift
+ /
: Folding code;
Ctrl
+ Shift
+ *
: Expand code;