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)方法