网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

Eclipse安装properties文件插件PropertyEditor

时间:2024-10-31 11:32:13

1、我们常常在properties文件中添加中文注释或者是一些国际化文件需要中文,而properties文件的中文需用unicode表示,使用eclipse默认的properties文件编辑器查看显示中文为乱码,如下图所示。即便修改properties文件的编码方式也没有用,解决该问题的方法便是安装PropertyEditor插件。

Eclipse安装properties文件插件PropertyEditor

2、百度搜索Properties Editor官方网站,我们需要在该网站上复制在线更新地址,网站和更新地址信息如下图所示。红色框中的链接便是我们下一步需要用到的在线更新地址。

Eclipse安装properties文件插件PropertyEditor

3、打开Eclipse开发工具,在菜单栏选择Help-->Install New Software,如下图所示。

Eclipse安装properties文件插件PropertyEditor

4、在弹出的页面Work with栏输入步骤2保存的链接,并勾选PropertiesEditor选项,如下图所示。

Eclipse安装properties文件插件PropertyEditor

5、点击next会列出安装的具体信息,选择I accept the terms of licence agreements,如下图所示。

Eclipse安装properties文件插件PropertyEditorEclipse安装properties文件插件PropertyEditor

6、若在安装的过程中出现安全警告,选择Install anyway即可,如下图所示。

Eclipse安装properties文件插件PropertyEditor

7、安装完后需重启Eclipse,重启后选择一个后缀名为.properties的配置文件,鼠标右键选择Open With-->PropertiesEditor,可看到一个"P"的文件图标,说明PropertiesEditor安装成功,如下图所示。

Eclipse安装properties文件插件PropertyEditor
© 2025 一点资料
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com