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

相關文章
相關標籤/搜索