zoukankan      html  css  js  c++  java
  • properties 插件安装

    在eclipse中安装properties插件PropertiesEditor及设置(附图),ASCII码转换成中文
    安装成功后ASCII还是不能转换成中文的,原因是设置里面没有把编码设置为utf8的,直接在文件里面设置不行,需要全局设置的才起作用。

    ------------------------------
    在线编码转换ASCII<->Native
    http://tool.oschina.net/encode?type=3
    Java中的properties配置文件可以使用这种格式
    -------------------------
    在eclipse中编写properties文件时,如果直接写中文,它不会自动转换成ASCII编码,在浏览器中就会显示为乱码
    在eclipse中安装properties插件
    方法一:
    eclipse中properties插件在线安装配置方法
    1、首先,在eclipse中点击“help”-"Install New Software"。
    2,、点击右侧的“Add”按钮。
    3、输入
    Name:properties。
    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.下载离线安装文件:http://sourceforge.jp/projects/propedit/downloads/40156/jp.gr.java_conf.ussiy.app.propedit_5.3.3.zip/
    2.安装与检验
    将得到的文件直接解压,可得到这样一个文件夹 jp.gr.java_conf.ussiy.app.propedit_5.3.3 ,直接将该文件夹复制到 Eclipse目录下覆盖插件文件夹。


    3.重启Eclipse。
    4.选中 *.properties 文件,右键 - Open With ,你会看到多了一个 PropertiesEditor 子菜单。
    5.将PropertiesEditor设为默认的打开方式
    工具栏->Window->Preferences->General->Editors->File Associations,添加一个*.properties。
    下方的 Associated editors 栏里有 PropertiesEditor 项,选中,点击 Default 按钮。
    双击properties文件默认就会用PropEditor打开了。

    ----------------------------

  • 相关阅读:
    centos7的网络设置
    day1学习
    举例讲解Linux系统下Python调用系统Shell的方法
    Python引用模块和查找模块路径
    详解Python中的循环语句的用法
    [cf1566H]Xorquiz
    [luogu5180]支配树
    [atAGC055D]ABC Ultimatum
    [cf1552H]A Serious Referee
    [gym102538H]Horrible Cycles
  • 原文地址:https://www.cnblogs.com/kcwang/p/14412690.html
Copyright © 2011-2022 走看看