eclipse使用笔记

下载

Eclipse IDE for Enterprise Java Developershtml

顺便安利一下OpenJDK发行版Azul Zulujava

优先安装的插件

Batch Editor
设为*.bat*.cmd文件的默认编辑器,避免双击文件后直接执行。git

Eclipse Wild Web Developer
加强Generic Text Editor语法提示,手动添加*.htm*.jsp*.yml文件关联。 github

subclipse
比Subversive好用web

Eclipse Tomcat Plugin
比自带的server易用spring

Enhanced Class Decompiler
它基于流行的(已删除)“Eclipse Class Decompiler”插件,但开源社区的成员经过删除可能危及您的隐私或安全的全部代码(即 https://0x10f8.wordpress.com/2017/08/07/reverse-engineering-an-eclipse-plugin 讨论的全部内容以及其余一些看似可疑的东西)来加强它,将伟大的核心插件功能带回给全部Eclipse用户。apache

FreeMarker IDE
Provides editor for Apache FreeMarker templates (ftl, ftlh, ftlx, etc.) with syntax error markers as you type, syntax highlighting (for the template language only), some code completion, and outline to navigate among macros/functions. See screenshot.
This is a maintenance fork of the discontinued JBoss Tools FreeMarker plugin, which was developed at JBoss (Red Hat), not by me.
The source code of this fork is here: https://github.com/ddekany/jbosstools-freemarker
Issue tracker is here...
FreeMarker IDE from JBoss Toolstomcat

其余插件

Properties Editor
为了查看那些把Latin1(iso-8859-1)以外的字符转为unicode编码的properties文件安全

Preferences

General>Appeanance>Theame:Light[Linux]eclipse

General>Appeanance>Colors and Fonts>Base>Text Font:不要设为Consolas 10,12(小四),15(小三),由于中文明显比英文小。推荐在Microsoft Store安装“更纱黑体”,选择“等距更纱黑体 T SC(Sarasa Mono T SC)”,让CJK字符显示效果更好。

General>Content Types>Text>Default encoding:UTF-8
General>Content Types>Text>Java Properties File>Default encoding:UTF-8
General>Content Types>Text>JSP>Default encoding:UTF-8
Web>JSP Files>Creating files>Encoding:ISO 10646/Unicode(UTF-8)
参考一

General>Editors>Text Editors>Hyperlinking>Default modifier key:Ctrl + Alt
除了Step Into SelectionTask EditorTasksCtrl,能够先把所有的Modifier Keys设为Ctrl,再把Default modifier key设为Ctrl + Alt,会发现只有这三个不受影响
参考二 参考三

General>Editors>Text Editors>Show line numbers:勾选
General>Editors>Text Editors>Show whitespace characters:勾选

General>Editors>Text Editors>Spelling>Enable spell checking:不勾选

General>Keys>Category:Text Editing>Collapse All:Ctrl+Numpad_Divide
General>Keys>Category:Text Editing>Toggle Folding:Ctrl+Shift+Numpad_Divide
参考四

General>Search>Reuse editos to show matches:不勾选
参考五 参考六

General>Startup and Shutdown>RSE UI:不勾选
Remote Systems>Re-open Remote Systems view to previous state:不勾选
参考七

General>Workspace>Text file encoding:UTF-8
General>Workspace>New text file line delimiter:Unix

Java>Debug>Suspend execution on uncaught exceptions:不勾选
参考八 参考九

View

Project Explorer的java文件重复显示
几种解决方法:

  • Package presentation改成Flat
  • Filters and Customization>Context>Resources:不勾选
  • 改用Package Explorer

相关文章
相关标签/搜索