一、編寫properties文件的Eclipse插件(plugin)
分享一個不錯的編寫properties文件的Eclipse插件(plugin),有了它我們在編輯一些簡體中文、繁體中文、日本語等 Unicode文本時,就不必再使用native2ascii編碼了。您可以通過Eclipse中的軟件升級(Software Update)安裝此插件,步驟如下:
相關圖片
二、設定properties文件的默認打開方式
插件裝完後,properties的默認打開方式還不是我們新裝的插件,需要設定一下
菜單:Window -> Preferences -> General -> Editors -> File Associations
File types: *.properties
Associated editors: Properties Editor*** -> Default
在Associated editors選擇框裏點擊“Properties Editor*** ”,點擊“Default”按鈕。
你將看到“Properties Editor*** ”排在最上面,其變爲“Properties Editor(Default)*** ”。
相關圖片
2、在Install/Update對話框中選擇Search for new features to install,點擊Next;
3、在Install對話框中點擊New Remote Site;
4、在New Update Site對話框的Name填入“PropEdit”或其它任意非空字符串,在URL中填入http://propedit.sourceforge.jp/eclipse/updates/;
5、在Site to include to search列表中,除上一步加入的site外的其它選項去掉,點擊Finsih;
6、在彈出的Updates對話框中的Select the features to install列表中將所有結尾爲“3.1.x”的選項去掉(適用於Eclipse 3.2版本的朋友);
7、點擊Finish關閉對話框;
8、在下載後,同意安裝,再按提示重啓Eclipse,在工具條看到形似vi的按鈕表示安裝成功,插件可用。此時,Eclpise中所有properties文件的文件名前有綠色的P的圖標作爲標識。