eclipse設(shè)置總結(jié)

1.Eclipse占用內(nèi)存設(shè)置,編輯eclipse.ini,新版的eclipse gc算法既然是G1

-XX:+UseG1GC

-XX:+UseStringDeduplication

--add-modules=ALL-SYSTEM

-Dosgi.requiredJavaVersion=1.8

-Xms2048m

-Xmx2048m

--add-modules=ALL-SYSTEM


2.程序運(yùn)行設(shè)置虛擬機(jī)參數(shù)

VM arguments -Xmx2048m -Xms2048m -XX:MaxPermSize=256m


3.eclipse設(shè)置字體大小

Windows--Preferences--General--Appearance--Colors and fonts--Basic--Text Fort


4.eclipse設(shè)置全局編碼

Windows--Preferences--General--Workspace--Text file encoding--other:UTF-8


5.eclipse中properties文件編碼問題

Windows--Preferences--General--ContentTypes--Text--Java Properties File,設(shè)置Default encoding,把下面的ISO-8859-1改為UTF-8或者GBK(推薦UTF-8),然后update。


6.修改提示的快捷鍵

Window--Preferences--General--Keys

在type filter text欄輸入Content, 選中 Content Assist, 如果存在快捷鍵(不是自己習(xí)慣的快捷鍵),點(diǎn)擊 Remove Binding, 然后在 Binding 欄輸入自己習(xí)慣的快捷鍵,這里我設(shè)置了 Alt+/


7.在eclipse中查看JVM的內(nèi)存使用情況

Window--Preferences--General--右邊,把 Show Heap Status 打上勾就會(huì)在右下角任務(wù)欄顯示內(nèi)存監(jiān)視器,并且可以點(diǎn)擊內(nèi)存回收


8.Remove RemoteSystemsTempFiles

Window--Preferences--General--Startup and Shutdown

and uncheck "RSE UI". Then you can remove the folder and eclipse won't recreate it.


9.設(shè)置eclipse的默認(rèn)瀏覽器

Window--Preferences--General--Web Browser中設(shè)置瀏覽器為外部瀏覽器


10設(shè)置本地Maven

取消Validation


11.eclipse code template

Window->Preferences->Java->Code Style->Code Template->Comments->Types

/**

?* @ClassName: ${type_name}

?*

?* @Description: ${todo}

?*

?* @author ${user}

?*

?* @email pizhiyun@163.com

?*

?* @date ${date} ${time}

?*

?* @version V1.0

?*

?*/


12.eclipse shortcut

Ctrl + o 在打開的類中,通過方法名查找方法

Ctrl + l 在打開的類中,輸入行號(hào)到指定的位置

.. 可以調(diào)用靜態(tài)方法

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

推薦閱讀更多精彩內(nèi)容