1. 程式人生 > >eclipse程式碼摺疊/展開之筆記本快捷鍵設定

eclipse程式碼摺疊/展開之筆記本快捷鍵設定

首先  
在eclipse 中開啟設定程式碼摺疊功能
1. windows->perferences->General->Editors->Structured Text Editors
可以看到Enable folding選項,打上勾就可以使用程式碼摺疊功能,但還要在具體的語言中設定。
2、windows->perferences->Java->Editors->Folding
可以看到Enable folding選項,打上勾就可以使用程式碼摺疊功能
完成以上兩步就OK了。
其次 
1 windows->perferences->general->key
程式碼摺疊的快捷鍵,預設是:
    Ctrl+Shift+Numpad_Divede(小鍵盤的/號)
    Ctrl+Shift+Numpad_Multiply(小鍵盤的*號)
筆記本沒小鍵盤,於是改成:
    Ctrl+Shift+-
    Ctrl+Shift+=