1.Eclipse占用內存設置,編輯eclipse.ini,新版的eclipse gc算法既然是G1
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=1.8
-Xms2048m
-Xmx2048m
--add-modules=ALL-SYSTEM
2.程序運行設置虛擬機參數
VM arguments -Xmx2048m -Xms2048m -XX:MaxPermSize=256m
3.eclipse設置字體大小
Windows--Preferences--General--Appearance--Colors and fonts--Basic--Text Fort
4.eclipse設置全局編碼
Windows--Preferences--General--Workspace--Text file encoding--other:UTF-8
5.eclipse中properties文件編碼問題
Windows--Preferences--General--ContentTypes--Text--Java Properties File,設置Default encoding,把下面的ISO-8859-1改為UTF-8或者GBK(推薦UTF-8),然后update。
6.修改提示的快捷鍵
Window--Preferences--General--Keys
在type filter text欄輸入Content, 選中 Content Assist, 如果存在快捷鍵(不是自己習慣的快捷鍵),點擊 Remove Binding, 然后在 Binding 欄輸入自己習慣的快捷鍵,這里我設置了 Alt+/
7.在eclipse中查看JVM的內存使用情況
Window--Preferences--General--右邊,把 Show Heap Status 打上勾就會在右下角任務欄顯示內存監視器,并且可以點擊內存回收
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.設置eclipse的默認瀏覽器
Window--Preferences--General--Web Browser中設置瀏覽器為外部瀏覽器
10設置本地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 在打開的類中,輸入行號到指定的位置
.. 可以調用靜態方法