Eclipse Java CodeStyle Formatter & Theme

JeffChang
2 min readJul 10, 2018

--

檔案我放在Google Drive空間上,

這是我自己調整的,相較於預設值還要容易閱讀的Java排版設定,連結在此

匯入說明

如圖,叫出Eclipse的Preferences,

往下找到Java > Code Style > Formatter,

在右手邊找到「Import」匯入後,

檢查Active profile是否為rd_style_v2再應用即可。

之後針對Java檔就可以使用Eclipse的自動排版了(command + shift + F)。

PS.Windows 系統的話是ctrl + shift + F。

編輯區塊的配色主題

我下載的是One Dark Pro這個配色主題,檔案放在此

不過在匯入之前,要先去Eclipse Market安裝一個Plugin「Darkest Dark Theme with DevStyle」,

安裝完之後Eclipse就會自動套用預設的主題配色(Darkest Dark),

接下來再下載上頭那個One Dark Pro配色主題檔案,

File > Import
General > Preferences
選到theme.epf檔案

最後按下Finish套用,Eclipse編輯區塊就會套用One Dark Pro的配色主題了。

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

JeffChang
JeffChang

Written by JeffChang

Java Backend Engineer In DDIM.

No responses yet

Write a response