Eclipse4.2是大多数java爱好者首选,相对于MyEclipse来说,启动速度快,但好多插件需要自己手工安装。如Properties文件在Eclipse中,如果是中文就会遇到乱码问题。
我们可以通过下载
Properties Editor插件,然后把Eclipse和
Properties Editor关联。
操作步骤:
1. 安装Properties Editor插件
1.1 Help -->> Install New Software
1.2 在打开窗口“Work with”输入:http://propedit.sourceforge.jp/eclipse/updates/ 回车
选择PropertiesEditor下的2个组件进行安装即可。如果去掉“Contact all update sites during install to find required software” 可以跳过自检。
1.2 安装完毕后,重启Eclipse。
2. Properties文件和Properties Editor关联
Window-->>Preferences-->>General-->>Editors-->>File Associations-->>*.properties-->>PropertiesEditors(default)
如果安装成功,则properties文件图片会变成一个文本中有个绿色的P。
如果还不能用Properites Editor打开,则文件右击 -> Open With -> PropertiesEditor即可
Properties Editor官网:http://propedit.sourceforge.jp/index_en.html
下面是官网Eclipse安装步聚,是英文版本的:
- Please choose from the screen of Eclipse with "Help" ->"Software Updates" -> "Update Manager". An 'Update Manager' opens.
- In the "Feature Updates" view at the lower left of an 'Update Manager', please carry out the right click of the "Sites to Visit", and create a site bookmark by "New" -> "Site Bookmark...".
- The bookmark to create should input the following "URL" and should push an "Finish" button.
Name: Arbitrary input
URL : http://propedit.sourceforge.jp/eclipse/updates/
Bookmark type: Eclipse update site
- If a site bookmark is created, the bookmark created at the bottom of "Feature Updates" will appear.
A click of "jp.gr.java_conf.ussiy.app.propedit.eclipse.feature.PropertiesEditorFeature x.x.x" displays a preview on a right window. Since the button "Install Now" is in around the lower right, please click.
- Since an installation wizard starts, please click a "Next" button rapidly.
- "You will need to restart the workbench for the changes to take effect. Would you like to restart now?" is displayed. Please reboot Eclipse according to a dialog.