在寫(xiě)代碼時(shí),會(huì)遇到需要暫時(shí)注釋掉一部分代碼,又不能刪除這些注釋。如果注釋掉很多行,看起來(lái)很不爽,請(qǐng)問(wèn)怎樣將大塊的注釋折疊起來(lái)?我知道在C#中可以通過(guò)#region #endregion的功能。
小伙看你根骨奇佳,潛力無(wú)限,來(lái)學(xué)PHP伐。
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:
It's very simple, click the "little minus sign" on the left to collapse it.
Eclipse shortcut keys:
Ctrl
+ Shift
+ /
: Folding code;
Ctrl
+ Shift
+ *
: Expand code;