一、编写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的图标作为标识。