前言
- Eclipse Version: 2019-09 R (4.13.0)
- PropertiesEditor 是将中文转换成 Unicode编码 进行保存。
烦人的乱码问题,再也不会出现了。
在线安装
eclipse中properties插件在线安装配置方法
1、首先,在eclipse中点击“help”-“Install New Software”。
2,、点击右侧的“Add”按钮。
3、输入
Name: PropertiesEditor
Location: http://propedit.sourceforge.jp/eclipse/updates/
然后点击OK。
4、稍等两分钟,就会出现插件列表,选择PropertiesEditor,然后Next.
5、继续Next。
6、点击“I accept ……”,然后Finish.。
7、安装完成后点击“Restart Now”重启eclipse。
8、此时在properties文件上点右键,点击“Open With"-“PropertiesEditor”,打开文件,现在就可以直接输入中文了。
离线安装
1.从国内景象地址下载离线安装文件:https://mirrors.tuna.tsinghua.edu.cn/osdn/propedit
以安装6.0.3版为例。
下载地址:https://mirrors.tuna.tsinghua.edu.cn/osdn/propedit/59939/jp.gr.java_conf.ussiy.app.propedit_6.0.3.zip
2.安装
将得到的文件直接解压,可得到这样一个文件夹 jp.gr.java_conf.ussiy.app.propedit_6.0.3 ,直接将该文件夹复制到 Eclipse目录下覆盖插件文件夹。
3.重启 Eclipse。
4. 此时在properties文件上点右键,点击“Open With"-“PropertiesEditor”,打开文件,现在就可以直接输入中文了。
将PropertiesEditor设为默认的打开方式
工具栏->Window->Preferences->General->Editors->File Associations,添加一个*.properties。
下方的 Associated editors 栏里有 PropertiesEditor 项,选中,点击 Default 按钮。
以后再双击properties文件进行编辑时,默认就会用PropEditor打开了。