Eclipse代码编辑器配置
来源:互联网 发布:成都易森画室知乎 编辑:程序博客网 时间:2024/05/20 16:36
用惯了Visual Studio的编辑器,转到Eclipse来还真不习惯,面对着Java、Jsp中一堆的垃圾注释、代码截断换行、括号不对齐…… 等等各种问题实在太恶心了!于是花点时间仔细研究一下Eclipse文本编辑器配置,按照自己的编码习惯优化了一下。这下清爽干净多了!!整个世界清静了!!
Eclipse 4.4.2(Luna),针对打开菜单 - Windows - Preferences界面进行以下调整
主题调整:
General - Appearance:
Theme = Classic
Color and Font theme = Classic Theme
General - Appearance - Colors and Fonts:
Basic - Text Font = 微软雅黑,五号
代码风格调整
General - Web - HTML Files - Editors
Formatting Line With: 800
Syntax Coloring: 取消所有的 Italic 斜体
General - XML - XML Files - Editors
Syntax Coloring: 取消所有的 Italic 斜体
General - Web - JSP Files - Editors
Syntax Coloring: 取消所有的 Italic 斜体
Templates: 取消模版中的代码换行
勾选Format JSP XML文档 as HTML
General - Java - Editor
Syntax Coloring: 取消所有的 Italic 斜体、粗体
General - Java - Code Style - Code Templates
清空所有Comments
删除Code下所有comments
General - Java - Code Style - Formatter
新建一个profile:
Braces: 全部Next line,勾选Keep empty array initializer on one line
Control Statements: 全部勾选
Line Wrapping: Maximun line with扩大10倍;全部 Do not wrap
General - Editors - Text Editors - Spelling
取消拼写检查
编码调整:
General - Editors - Text Editors - Spelling
Encoding: Other UTF-8
General - Workspace
Text file encoding: UTF-8
General - Web - JSP Files
Encoding: UTF8
General - Web - HTML Files
Encoding: UTF8
Loading Files: 勾选Use workspace encoding(即UTF-8)
- Eclipse代码编辑器配置
- Eclipse编辑器显示代码行
- eclipse 编辑器代码间距格式化
- eclipse中配置js编辑器
- eclipse乱码配置、编辑器等配置
- Eclipse代码模板配置
- 让eclipse编辑器显示代码的行数
- 让eclipse代码编辑器换下皮肤
- 配置spket到Eclipse作为ExtJS编辑器
- ubuntu 12.04 eclipse 编辑器颜色配置
- eclipse配置代码补全功能
- eclipse代码提示配置方法
- eclipse 配置 maven 编译代码
- eclipse 配置 maven 编译代码
- eclipse 配置 maven 编译代码
- 在线代码编辑器 CODEMIRROR 配置说明
- 在线代码编辑器 CODEMIRROR 配置说明
- eclipse CDT 代码编辑器配色风格+(Source Insight)
- html中的position
- springmvc与struts2对比
- leetcode Course Schedule II
- Java —— 性能优化
- 推荐系统实践--基于用户的协同过滤算法
- Eclipse代码编辑器配置
- <meta charset="utf-8"/>与<meta http-equiv="Content-Type">
- Caffe安装指南
- 安卓NDK开发入门DEMO
- 挑战面试编程:左移字符串
- ContentProvider的用法浅析
- 开发辅助工具
- iOS开发 ARC下造成内存泄露的问题
- hdu 2212