您的位置:首页 > 编程语言 > Java开发

eclipse和Myeclipse中的properties文件查看和编辑插件

2016-12-21 14:19 441 查看

Eclipse

*.properties属性文件,如果文件中包含中文,会出现乱码。为了解决这个问题,可以为Eclipse安装Properties Editor插件解决这个问题。



步骤

1.安装Properties Editor插件

Help –> Install New Software

在打开窗口“Work with”输入:
http://propedit.sourceforge.jp/eclipse/updates/
回车

选择PropertiesEditor 组件进行安装即可。如果去掉“Contact all update sites during install to find required software” 可以跳过自检。

安装过程中,可能有警告,别管它,点击是就可以。

安装完毕后,重启Eclipse。

2.Properties文件和Properties Editor关联

如果安装成功,则properties文件图片会变成一个文本中有个绿色的P。



如果还不能用Properites Editor打开,则文件右击 -> Open With -> PropertiesEditor即可



MyEclipse

myeclipse中一般是默认使用myeclipse properties editor打开properties文件,它会自动转码中文为unicode编码(\u开头)

解决办法:可以使用PropertiesEditor插件

1.插件下载地址:

官网:http://propedit.osdn.jp/index_en.html(找到eclipse plugin那个位置)

csdn资源:



2.PropertiesEditor插件安装方法:

解压下载的插件zip包,里面有个eclipse文件夹,该文件夹下面有features和plugins两个文件,

在myeclipse目录下面的dropins下新建一个文件夹PropertiesEditor(该文件夹名就是在myeclipse里面的插件名)

将features和plugins两个文件拷贝至新建的PropertiesEditor文件夹下,重启myeclipse

然后,打开myeclipse邮件选中properties文件,open with -> PropertiesEditor
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: