search
尋找貓咪~QQ 地點 桃園市桃園區 Taoyuan , Taoyuan

eclipse中,把java函數代碼折疊/展開 介紹 – jashliao部落格

eclipse中,把java函數代碼折疊/展開 介紹

 

首先
在eclipse 中開啟設置代碼折疊功能

1. windows->perferences->General->Editors->Structured Text Editors
可以看到Enable folding選項,打上勾就可以使用代碼折疊功能,但還要在具體的語言中設置。

 

2、windows->perferences->Java->Editors->Folding

可以看到Enable folding選項,打上勾就可以使用代碼折疊功能。
其次
使用快捷鍵
下面你就可以用如下快捷鍵在你的java class 中 折疊或者展開你的代碼了.
代碼折疊的快捷鍵,默認是:
Ctrl+Shift+Numpad_Divede(小鍵盤的/號)
Ctrl+Shift+Numpad_Multiply(小鍵盤的*號)
筆記本沒小鍵盤,於是改成:
Ctrl+Shift+-
Ctrl+Shift+=



熱門推薦

本文由 jashliaoeuwordpress 提供 原文連結

寵物協尋 相信 終究能找到回家的路
寫了7763篇文章,獲得2次喜歡
留言回覆
回覆
精彩推薦