• Eclipse优化


    1.在eclipse启动的时候,它总是会搜索让其运行的jre,往往就是这个搜索过程让eclipse启动变慢了。(没设置时,等2-3s出现进度条,设置后直接出现进度条)

    只要在eclipse.ini中加入-vm的参数就可以了
    eclipse启动优化,终于不那么卡了!-飞网

    2.设置字体大小
    Window-Preferences->General->Appearance->Colors and Fonts->Basic->Text Font

    3.windows–>perferences–>general–>Content Types,将需要修改的类型修改成UTF-8

    4.JSP、XML等文件类型默认打开方式的修改
    windows–>perferences–>General–>Editors->file associations选择*.xml,选择myeclipse xml editor点default,*.jsp则选jsp editor点default等

    5.tab代码缩进4个空格
    Window->Preferences->General->Editors->Text Editors:Displayed tab width = 4,选重insert spaces for tabs

    6.关闭拼写检查设置

    7.取消所有启动时要激活的插件(在用时激活也一样)和其它的相关的在启动时执行的操作。

    8.编码格式修改

    windows–>perferences–>general–>Workspace,将工作空间中的文本文件的编码格式改为UTF-8


    9.关闭自动更新


    10.关闭SaveAction。在每次保存时都会执行的操作,这个会严重的拖慢保存,特别是文件大时。这个其实只要自己养成良好的编程习惯,就完全不需要这个了。


    11.优化代码提示。

    12.注解配置

    设置注释模板的入口: Window->Preference->Java->Code Style->Code Template

    文件(Files)注释标签
    /**@Description:
     * @Title: ${file_name}
     * @Package: ${package_name}
     * @Author: ${user}
     * @Date: ${date} ${time}  
     */

    类型(Types)注释标签(类的注释):
    /**@Description:
     * @ClassName: ${type_name}
     * @Author: ${user}
     * @Date: ${date} ${time}  
     * ${tags}
     */

    字段(Fields)注释标签:
    /**
     * @Fields ${field} : ${todo}
     */

    构造器(Constructor & Methods)标签:
    /**@Description:
     * @Title: ${file_name}
     * @Date: ${date} ${time}
     * @Author: ${user}
     * @Throws
     * ${tags}
     */


    方法(Methods)标签:

    /**@Description:
     * @Title: ${enclosing_method}
     * @Date: ${date} ${time}
     * @Author: ${user}
     * @Throws
     * ${tags}
     */


    覆盖方法(Overriding Methods)标签
    /* Description:
     * Title: ${enclosing_method}
     * ${tags}
     * ${see_to_overridden}
     */
     
    代表方法(Delegate Methods)标签:
    /**
     * ${tags}
     * ${see_to_target}
     */

    13.Eclipse自动文本验证
    Window->Preferences->Validation
    保留manual(手动)部分,build下只留"classpath dependencyValidator"

    手动验证:选中文件右击->Validation


    修改黑色主题后,需要修改Debug执行当前行的颜色

    window --preferences--general--editors--text editors--annotations--debug current instruction pointer

  • 相关阅读:
    jvm出现OutOfMemoryError时处理方法/jvm原理和优化参考
    linux内核参数注释与优化
    JMeter基础之—录制脚本
    linux ACL权限控制
    linux中安装jdk+jmeter-
    FPGA知识大梳理(三)verilogHDL语法入门(2)知识汇总
    FPGA知识大梳理(二)verilogHDL语法入门(1)
    FPGA知识大梳理(一)对FPGA行业的一点感言
    openrisc 之 Wishbone总线学习笔记——接口信号定义
    openrisc 之 Wishbone总线学习笔记——总线互联
  • 原文地址:https://www.cnblogs.com/onlymate/p/8761891.html
Copyright © 2020-2023  润新知