Eclipse註解

此篇會說明如何匯入註解樣板

JeffChang
2 min readAug 10, 2018

先去下載樣板的設定檔(https://drive.google.com/open?id=1iytlzjn2hGXZdGD-VT-9iSclX2Y6LoH_),下載後開啟Eclipse。

首先打開Eclipse的Preferences,點選Import,選擇剛剛下載的檔案(Java_CodeStyle_CodeTemplates.xml)。

匯入完成後再選下面的自動加上註解選項。

匯入完成的話,新建立一個新的class就會自動加上註解。

新增Method時,輸入/**再按下Enter就會自動帶出參數等等。

BTW,在Mac上如果要在Eclipse上顯示自訂的作者名稱的話,

先去應用程式找到Eclipse,再點選右鍵選「顯示套件內容」。

依照路徑找到Eclipse/Contents/Eclipse/eclipse.ini,打開這個設定檔,

在這個設定檔中,新增一項參數:

-Duser.name=你要設定的名字

如此一來在新建Java Class的時候就會帶出自己設定的名字了。

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