1. 常用操作
1.1 树状展开项目
1.2 设置编码格式
1、设置工作空间编码格式
Window –> Preferences –> General –> Workspace下,面板Text file encoding 选择UTF-8格式
2、设置JSP页面编码格式
Window –> Preferences –> Web –> JSP Files 面板选择 ISO 10646/Unicode(UTF-8)格式编码
3、设置文档编码格式
Window –> Preferences –> General –> Content Type –> Text的最下面设置为编码格式为UTF-8(手动输入)
附加:设置项目的文档编码格式
选择项目 –> 右键 –> Properties –> Resource 设置编码为UTF-8格式
1.3 配置jdk
Window –> Preferences –> java –> Installed JREs –> Add –> 选择Standard VM –> Next –> 选择jdk安装目录
1.4 配置tomcat
Window –> Preferences –> Server –> Runtime Environment –> Add –> 根据自己下载的jdk选择版本 –> Next –> 选择tomcat安装目录
1.5 设置字体、背景等
1、背景色
General –> Editors –> Test Editors –> Appearance color options –> background color –> 点击Color 后的颜色 –> 自定义颜色
色调:83,饱和度:117,亮度:218
2、字体大小
window –> perferences –> General –> Appearance –> Colors and Fonts –> BAsicText Font –> 单击Edit修改
3、字体颜色设置
(1)java:windows –> Preferences –> Java –> Editor –> Syntax Coloring 自定义颜色即可
(2)其他:windows –> Preferences –> 其他文件 –> Editor –> Syntax Coloring 自定义颜色即可
1.6 配置maven
Window –> Perferences –> Maven –> Installations –> add 选择maven安装目录 –> 确定 –> Apply –> OK
Window –> Perferences –> Maven –> UserSetting –> 在GloblSetting下 –> 选择Maven目录 –> conf –> settings.xml
1.7 配置svn
Help –> Install New Software
- 输入 Luna - http://download.eclipse.org/releases/luna
- 展开 Collaboration 节点,选中 Subversive SVN Team Provider
1.8 其他
1、显示行号,显示空白字符
window –> preferences –> General –> editor –> text editors –> 勾选show line numbers 和 show whitespace characters
- 然后点击 show whitespace characters 后边的(configure visibility)
2、设置java默认风格每行最大字符数量
window -> preferences –> java –> code style–> formatter –> edit… –> line wrapping maximum line width
3、设置console控制台
- 设置控制台最大显示行数
- 在console面板上右键
preferences
–>console buffer size
,根据需要修改,可以尝试改为最大值- 设置控制台禁止自动滚动到最下面,按需灵活启用
- 在console面板上右键,
scroll lock
4、设置最大可撤销编辑的次数,根据需要增大
window
–>
preferences–>
General–>
editor–>
text editors–>
undo history size
5、取消单词拼写检查
window –> General –> Editors –> Text Editors –> Spelling –> 把右边的Enable spell checking的勾去掉
6、去除不需要加载的模块
windows –> perferences –> general –> startup and shutdown
- 关掉没用的启动项:
- (1)WTP webservice UI plug-in UI视图
- (2)Equinox Provisioning platform Automatic Update Support 自动跟新
7、修改Eclipse安装目录的eclipse.ini文件,加大JVM的非堆内存
打开eclipse配置文件eclipse.ini,更改把-Xmx(其数值代表jvm可以使用的最大内存数)
- -Xms256m
- -Xmx1024m
VM arguments
- -Xms256M -Xmx1024M -XX:PermSize=64M -XX:MaxPermSize=128M
8、代码自动提示/补全
Window –> Perferences –> Java –> Editor –> Content Assist –> 右侧 Auto activation triggers for Java
- 只有一个 . 添加 qwertyuioplkjhgfdsazxcvbnm