Eclipse 常用设置

来源:互联网 发布:tensorflow的tpuapi 编辑:程序博客网 时间:2024/05/01 05:35
1,设置默认的全局JRE: 
Window->Preferences-> Java -> Installed JREs ,这样每次新建项目时,默认的JRE库即为选中的项。 
Eclipse、MyEclipse 常用设置 - sql00815 - sql00815的博客 
2,设置工作空间全局编码: 
设置UTF-8   Window->Preferences->General->Workspace 中Text file encoding 选择other并选UTF-8 
Eclipse、MyEclipse 常用设置 - sql00815 - sql00815的博客 
3,修改文件默认编码: 
Window -> Preferences -> General -> Content Types 
【注意是修改最下面的Default encoding】,在这里可以将html、properties和jsp文件的编码都改成UTF-8的。 
这样修改后,以后每次新建properties并保存时,就不会跳出一个对话框说你现在的编码是ISO-8859-1的提示了。 
Eclipse、MyEclipse 常用设置 - sql00815 - sql00815的博客
4,修改特定文件的编码: 
Window -> Preferences -> MyEclipse -> Files and Editors -> JSP 
比如这里修改JSP的页面显示编码为UTF-8,那么每次新建一个jsp文件后,第一行的编码设置内容就会像这样所示:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
Eclipse、MyEclipse 常用设置 - sql00815 - sql00815的博客 
5,设置字体: 
Window -> Preferences -> General -> Appearance -> Colors and Fonts -> Basic -> Text font 
Eclipse、MyEclipse 常用设置 - sql00815 - sql00815的博客 
6,设置文件默认编辑器: 
Window -> Preferences -> General ->  Editors -> File Associations 
Eclipse、MyEclipse 常用设置 - sql00815 - sql00815的博客 
7,设置当鼠标移到文字上时的事件:这里选择快速显示注释。 
Window -> Preferences -> General ->  Editors -> Text Editors -> When mouse moved into hover. 
Eclipse、MyEclipse 常用设置 - sql00815 - sql00815的博客 
8,设置快捷键: 
Window -> Preferences -> General -> Keys 
输入要设置的动作的名称,比如这里输入“run java”进行过滤,然后在Binding选项中设置快捷键。 
这样以后每次要运行java程序时,只需要按 Alt+X 快捷键就可以了。 
Eclipse、MyEclipse 常用设置 - sql00815 - sql00815的博客
9,禁用启动时不需要的插件: 
Window -> Preferences -> General -> StartUp and Shutdown 
比如Myeclipse Derby,老是在Server控制台占着茅坑不拉屎,看着蛋疼,先把它给治了。 
Eclipse、MyEclipse 常用设置 - sql00815 - sql00815的博客 
10,设置注册码: 
Window -> Preferences -> MyEclipse -> Subscription 
Eclipse、MyEclipse 常用设置 - sql00815 - sql00815的博客 

11,关闭自动更新: 
Myeclipse有时一打开就在Progress中无休止地更新,必须把它给做了。 
1. window --> preferences --> General --> Startup and Shutdown, 
去掉 "Automatic Updates Scheduler " 项前面的勾。 
2. Window --> Preferences --> Myeclipse Enterprise Workbench --> Maven4Myeclipse --> Maven --> "Download repository index updates on startup", 去掉前面的勾。 
原创粉丝点击