Eclipse各种配置

1、配置工作空间编码

Window -- Preferences-- Genereal -- Workspace (Text file encoding -- orther -- utf-8)
 
2、配置文件打开方式
Window -- Preferences-- Genereal--Editors -- File Associations(选中File types 中对应文件 -- 选择 Associted editors--default--OK)
 
3、配置JSP默认编码
Window -- Preferences -- MyEclipse -- JSP --encoding -- utf-8 -- ok
 
4、集成tomcat
Window -- Preferences -- MyEclipse--Servers --Tomcat -- 选择对应版本--enable -- 选择tomcat路径---JDK(如果没有,点击ADD,注意path选择jdk)--ok
 
5、保存是自动格式化代码
Window -- Preferences--Java--Editor--Save actions--选中Perform the selected actions on save--选中format the source code --选中Format all lines
 
6、设置提示信息
Window -- Preferences--Java--Editor--倒数第二行Auto activation triggersfor java--把26个字母都填进去就ok了,顺序不重要。
原文地址:https://www.cnblogs.com/yangxiu/p/5899775.html