When editing JSP and JS files in eclipse, The deadlock resolution summary (go)

Source: Internet
Author: User

When using Eclipse to edit jsp, js file, often appear stuck, Baidu on the Internet n times, after the optimization adjustment of n times, card death gradually improved, the specific method played a role, not very good. List all the used methods as Follows:
1. Cancel Verification
Windows–>perferences–>validation
Drop all except the manual below, build only leave classpath dependency Validator
2. Turn off spell checking
Windows–>perferences–>general–> Editors->text editors->spelling
3. For myeclipse, editing tools when modifying JSP pages
Window > Perferences > General > Editors > File associations >
In file types, select *.jsp > Set myeclipse jsp Editor to default in associated Editors.
4, eliminate the JAR Packet access network
Using smart hints when editing JSPs with Eclipse or myeclipse may cause the IDE to Die.
This is because the eclipse prompts you to access the network based on the Javadoc location specified by the jar Package.
Workaround: window-->preferences-->java-->installed jres, Edit the JRE used, put Rt.jar and Charsets.jar Javadoc Location is set to null (none). of course, You can also download Javadoc to this machine, the relevant settings can also be Resolved.
Also: all the jar packages used in your project are treated the Same.
5. Modify shortcut keys for open links
recently, when editing code in myeclipse, use shortcut keys to copy and paste, often cause the editor briefly pause, the cursor does not follow, incredibly response, almost suspended Animation.
Want to think about what should be the editor on the configuration or what the Ide's function, so into the preferences to find the edit function, a test, and finally found that the original code of the Super-chain function Caused.
Access method: Text Editors, Editors, Preferences, general, windows------hyperlinking
Change the hyperlink shortcut to another key such as Alt (cannot change to Shift)
Description: in eclipse, you can often use CTRL + mouse click to direct the editing interface to related methods, properties, or classes.
This function is very useful, but because the copy and paste of the function shortcut key is also ctrl, so I in the fast operation, Eclipse response, Unable to analyze my operation, now only need to change one of the other shortcut
Original page Address: Http://liyanblog.cn/articles/2013/03/28/1364464592117.html#6555527-youdao-1-342-6bf3f08145fcae5f9805082906cbbf15
6. Modify the Project's. project file
The default JS editor in Eclipse is very slow, especially when copying and pasting code
Using the official website of the standard version of the eclipse3.9 for Java EE does not install any plug-in, write JS when the card is simply unbearable, try to remove all the validate, including menu and item properties are not in effect, later in the project root directory: Project found the following red Line incredibly validator are still in, the red corresponding to the configuration section all deleted, the problem solved, edit JS no longer like a Snail.
<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>
Original Link: http://blog.csdn.net/bell2008/article/details/8758290
7. Adjustment Eclipse Run memory .
Edit the Eclipse.ini file with EditPlus in the installation directory of Eclipse and change the parameters to:
First Version:
-vmargs
-dosgi.requiredjavaversion=1.6
-xms512m
-xmx512m
-xx:permsize=256m
-xx:maxpermsize=256m
-xx:-usegcoverheadlimit
A second version:
-dosgi.requiredjavaversion=1.6
-xms1600m
-xmx1600m
-xx:newsize=800m
-xx:maxnewsize=800m
-xx:permsize=256m
-xx:maxpermsize=256m
-xx:+disableexplicitgc
-xx:compilethreshold=100
-xverify:none
-xx:+useparnewgc
-xx:+useconcmarksweepgc
-xx:cmsinitiatingoccupancyfraction=80

When editing JSP and JS files in eclipse, The deadlock resolution summary (go)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.