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(小键盘的/号)     【Collapse All】
    Ctrl+Shift+Numpad_Multiply(小键盘的*号)   【Expand All】
笔记本没小键盘,于是改成:
    Ctrl+Shift+-
    Ctrl+Shift+=

猜你喜欢

转载自wang-z-p2007.iteye.com/blog/2403749
今日推荐