eclipse设置总结

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.eclipseproperties文件编码问题

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 在打开的类中,输入行号到指定的位置

.. 可以调用静态方法

 

posted @ 2018-06-12 10:18  黑客不黑撒  阅读(576)  评论(0编辑  收藏  举报