完美解决你使用eclipse编辑jsp、js文件时,经常出现卡死的问题

使用Eclipse编辑jsp、js文件时,经常出现卡死现象,解决方法如下:

1、取消验证

windows–>perferences–>validation

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

完美解决你使用eclipse编辑jsp、js文件时,经常出现卡死的问题

其实我是把所有的都给关了!

2、关闭拼写检查

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

完美解决你使用eclipse编辑jsp、js文件时,经常出现卡死的问题

3、关闭js校验

在项目名上按alt+enter - 》Buliers 里面取消不需要的校验,一般都是js校验很慢,所以把JavaScript Validator前面的勾去掉。

完美解决你使用eclipse编辑jsp、js文件时,经常出现卡死的问题

4、修改项目的.project文件

eclipse中默认js编辑器非常慢,尤其在拷贝粘贴代码时,因为使用的是官网标准版的eclipse3.9 for javaEE未装任何插件,写JS时卡的简直无法忍受,尝试去掉所有的validate,包括菜单和项目属性中的都无作用,后来在项目根目录的.project文件中发现以下红色行居然Validator都还在,把红色对应的配置段全部删去后,问题解决,编辑JS再也不似蜗牛了.

<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>


参考:https://blog.csdn.net/yjclsx/article/details/80923240