优化eclipse打开jsp,js速度

来源:互联网 发布:翻墙的软件 编辑:程序博客网 时间:2024/06/14 07:35

1、取消验证

windows–>perferences–>validation

把 除了manual 下面的全部点掉,build下只留 classpath dependency Validator

 

2、关闭拼写检查

 

windows–>perferences–>general–> editors->Text Editors->spelling

 

3、修改JSP页面默认打开工具

 

 Window > perferences > General > Editors > File Associations > 

在File types 中选择 *.jsp > 在Associated editors 中将"JSP Editor"设置为默认。

 

4、修改打开链接的快捷键

 

 Window -> Preferences -> General -> Editors -> Text Editors -> Hyperlinking

 

把超链的快捷键改为其他键比如Alt(不能改为shift)

说明:在Eclipse中,经常可以使用Ctrl+鼠标单击操作,有会延迟IDE响应。

 

5、修改项目的.project文件

去掉.project中红色行

 

  <buildSpec>

 

  <buildCommand>

 

   <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>

 

   <triggers>full,incremental,</triggers>

 

   <arguments>

 

    <dictionary>

 

     <key>LaunchConfigHandle</key>

 

     <value>&lt;project&gt;/.externalToolBuilders/org.eclipse.wst.jsdt.core.javascriptValidator.launch</value>

 

    </dictionary>

 

   </arguments>

 

  </buildCommand>

 

  <buildCommand>

 

   <name>org.eclipse.jdt.core.javabuilder</name>

 

   <arguments>

 

   </arguments>

 

  </buildCommand>

 

  <buildCommand>

 

   <name>org.eclipse.wst.common.project.facet.core.builder</name>

 

   <arguments>

 

   </arguments>

 

  </buildCommand>

 

  <buildCommand>

 

   <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>

 

   <triggers>full,incremental,</triggers>

 

   <arguments>

 

    <dictionary>

 

     <key>LaunchConfigHandle</key>

 

     <value>&lt;project&gt;/.externalToolBuilders/org.eclipse.wst.validation.validationbuilder.launch</value>

 

    </dictionary>

 

   </arguments>

 

  </buildCommand>

 

 </buildSpec>

 

 <natures>

 

  <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>

 

  <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>

 

  <nature>org.eclipse.wst.common.project.facet.core.nature</nature>

 

  <nature>org.eclipse.jdt.core.javanature</nature>

 

  <nature>org.eclipse.wst.jsdt.core.jsNature</nature>

 

 </natures>

 

6、调整Eclipse运行内存

 

在eclipse的安装目录下用EditPlus编辑eclipse.ini文件,将其中的参数改成:

-Xms512m  
-Xmx2048m  
-server  
-XX:PermSize=128m  
-XX:MaxPermSize=256m  
-XX:+UseParNewGC  
-Xverify:none

7、启动插件优化

windows - preference- general - startup and shutdown 里,只保留第1、3、4,其他全部取消,保留的为:

Usage DAta Gathering Plug-in,

Equinox Provisioning Platform Automatic Updata Support,

WTP Webservice UI Plug-in

8、清理工程文件

删除工作空间目录下.metadata\.plugins\org.eclipse.epp.usagedata.recording目录里的所有文件,主要要保留这个目录,只删除目录下文件即可

 

9、其他

1. 取消掉“project -> Buiild Automatically”选项;
2.进入Windows->Preferences->Java->Editor->Hovers,然后关掉eclipse相关的hover选项;