eclipse的使用

来源:互联网 发布:unity3d插件map lab 编辑:程序博客网 时间:2024/06/05 07:31
  1. 配置反编译插件,有利于对jar包中的源代码进行查看

    1、下载http://download.csdn.net/download/u011280067/9895309压缩包2、解压后将net.sf.jadclipse_3.3.0.jar放入eclipse的安装目录下的plugins下,重启eclipse3、重启后在window->preferences->java下可以看到多了一个JadClipse选项,配置选项中的Path to decompier为jad.exe的真实路径(可以放到jdk的bin目录下或者自定义)3、在window-preferences-general-Editors-File Associations下配置.class、.class without source 的默认打开方式为JadClipse class file viewer4、查看项目中的.class文件,如果开头是`/*jadclipse*/// Decompiled by Jad v1.5.8g.`则配置成功
  2. 配置代码自动提示

    1、java代码自动提示window->preferences->java->Editor->Content Assist下配置Auto activation trigger for java值为 :.abcdefghijklmnopgrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ()     2、xml自动提示在window->preferences->XML->XML Files->Editor->Content Assist中prompt when these characters are inserted中配置值为 :<=:abcdefghijklmnopqrstuvwxyz(,
  3. 配置方法、类、变量等自动注释

    window->preferences->java->Code Style->Code Template
  4. 配置java、js、xml自动格式化时格式

    JAVA:window->preferences->java->Code Style->FormatterJS:window->preferences->JavaScript->Code Style->Formatter