Summary of the stuck phenomenon when editing jsp and js files in Eclipse

Summary of the stuck phenomenon when editing jsp and js files in Eclipse

reprint  January 28, 2016 14:53:20
  • 1930

Sourced from (http://rsy.iteye.com/blog/2095668/)

 

When using Eclipse to edit jsp and js files, the stuck phenomenon often occurs. After N times of Baidu on the Internet, after N optimization and adjustment, the stuck phenomenon gradually improves. It is not easy to tell which method works. All the methods used are listed below:

 

1. Cancel verification

windows–>perferences–>validation

Click off everything except the manual, and leave only the classpath dependency Validator under build

 

2. Turn off spell check

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

 

3. For MyEclipse, editing tools when modifying JSP pages 

 Window > perferences > General > Editors > File Associations > 

Select *.jsp in File types > Set "MyEclipse JSP Editor" as default in Associated editors. 

 

4. Prevent the jar package from accessing the network

When editing JSP with eclipse or myeclipse, using intellisense may cause ide to freeze.

This is because eclipse will access the network according to the javadoc location specified by the JAR package when prompted.

Solution: window-->preferences-->java-->installed JREs, edit the jre used, and set the javadoc location of rt.jar and charsets.jar to none. Of course, you can also download javadoc to this machine, and make relevant settings to solve it.

In addition: Treat all jar packages used in your own projects in the same way.

 

5. Modify the shortcut key to open the link

最近在MyEclipse中编辑代码时,使用快捷键进行复制粘贴,经常会导致编辑器短暂的停顿,光标不跟随,居然反应不过来,几近假死。

想来想去应该是编辑上的什么配置或者是IDE的什么功能导致,于是进入Preferences查找edit功能,进行一个个的测试,最后发现原来是代码的超链功能导致。

进入方法:Window -> Preferences -> General -> Editors -> Text Editors -> Hyperlinking

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

说明:在Eclipse中,经常可以使用Ctrl+鼠标单击,可以直接将编辑界面引导到相关的方法,属性,或者类。

这个功能确实非常好用,但是由于复制粘贴的功能快捷键也是Ctrl,以致我在快速进行操作的时候,Eclipse反应不过来,无法分析我的操作,现在只需要改变一个其他的快捷

原网页地址:http://liyanblog.cn/articles/2013/03/28/1364464592117.html#6555527-youdao-1-342-6bf3f08145fcae5f9805082906cbbf15

 

6、修改项目的.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>

原文链接:http://blog.csdn.net/bell2008/article/details/8758290

 

7、调整Eclipse运行内存

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

-vmargs

-Dosgi.requiredJavaVersion=1.6

-Xms512m

-Xmx512m

-XX:PermSize=256M 

-XX:MaxPermSize=256M

-XX:-UseGCOverheadLimit

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326222854&siteId=291194637