piaoyi's blog - 站在煩惱裡仰望幸福

« Acegisecurity Memo-8... | Main | Useful Eclipse Plugi... »

http://www.javaworld.com.tw/roller/piaoyi/date/20080529 Thursday May 29, 2008

Eclipse Preferences FAQ

因為常常會設定 Eclipse 工作區的 Preferences,尤其是在建新工作區時,想要調某些設定,卻一下子找不到在哪設,所以還是把一些常用的設定路徑放上來好了,方便查表。

雖然 Eclipse 可以匯入/匯出 Preferences,但不知為何,就是有的設定不會匯到,無力!!

  • 取消 eclipse 主控台(Console) 輸出的字數限制
    1. [Windows]->[Preferences]->[Run/Debug]->[Console],取消選取[Limit console output]。
  • 變更 Editor 編碼(encoding)
    1. [Windows]->[Preferences]->[General]->[Workspace],變更[Text file Encoding]為想要的 charset。
    2. [Windows]->[Preferences]->[Web and XML]->[CSS Files],變更[Encoding]為想要的 charset。
    3. [Windows]->[Preferences]->[Web and XML]->[HTML Files],變更[Encoding]為想要的 charset。
    4. [Windows]->[Preferences]->[Web and XML]->[JSP Files],變更[Encoding]為想要的 charset。
    5. [Windows]->[Preferences]->[Web and XML]->[XML Files],變更[Encoding]為想要的 charset。
    6. [Windows]->[Preferences]->[General]->[Content Types],這裡好像可以調全部的 charset,但我沒試過。
  • Show Source of Selected Element Only
    1. [Windows]->[Customize Perspective]->[Commands]->[Available command groups],選取[Editor Presentation]。
  • 變更 Content Assist 快速鍵為 Ctrl + L (原本為 Alt + /)
    1. [Windows]->[Preferences]->[General]->[Keys],選取[Content Assist]項修改(在 Editor 類別內)。
  • 修改 ${user} 值
    1. 修改 eclipse.ini,加入 -Duser.name=my user name
  • 修改操作介面語系 (Hey!Hey!避免看到有些 plugin 的 menu 有很怪的中文)
    1. 修改 eclipse.ini,加入 -Duser.language=en
  • 自動移除編輯時,每行程式中最後面多餘的空白
    1. [Windows]->[Preferences]->[General]->[Editors]->[AnyEdit Tools]->[Auto - Convert] 頁籤,勾選 [Remove Trailing whitespace]。(這個要安裝 AnyEdit plugin,參考我另一篇 plugin 文章中的 JDepend plugin update site)
待續...


Comments:

mahahaha...

Posted by Eva on August 04, 2008 at 03:31 PM CST #

Post a Comment:
  • HTML Syntax: NOT allowed

« Acegisecurity Memo-8... | Main | Useful Eclipse Plugi... »