Use Eclipse edit jsp, JS file, often appear card dead phenomenon, in the online Baidu N Times, after the N optimization adjustment, the card death phenomenon gradually improved, the specific method played a role, not too good to speak. List all the used methods as follows:
1. Canceling verification
Windows–>perferences–>validation
Except for all the points below manual, the build only leaves Classpath dependency Validator
2. Turn off spell check
Windows–>perferences–>general–> Editors->text editors->spelling
3, for MyEclipse, modify the JSP page editing tools
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
When you edit a JSP with Eclipse or MyEclipse, using a smart hint can cause the IDE to die.
This is because 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, can also go to download Javadoc to the local machine, the relevant settings can also be resolved.
In addition, all the jar packages used in your own project are treated in the same way.
5, modify the shortcut key to open the link
The recent editing of code in MyEclipse, using shortcut keys to copy and paste, often lead to a short pause editor, the cursor does not follow, incredibly reactive, almost suspended animation.
Think about what should be the editor of what the configuration or the IDE's what function caused, and then enter the preferences search edit function, a test, and finally found that the code is the chain of functions caused.
Entry method: Window-> Preferences-> General-> Editors-> Text Editors-> hyperlinking
Change the hyperlink shortcut key to another key such as ALT (not shift)
Description: In eclipse, you can often use CTRL + mouse click to direct the editing interface to related methods, properties, or classes.
This feature is really good, but because the copy-and-paste feature shortcuts are also CTRL, so that I am in the process of fast operation, Eclipse can not respond to, unable to analyze my operation, now only need to change a other shortcut
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 eclipse3.9 for Java EE does not install any plug-ins, write JS card is simply unbearable, try to remove all validate, including menu and item properties in the No effect, later in the project root directory. Project found the following red Line incredibly validator are still, the red corresponding configuration section all deleted, problem solving, 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><project>/.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><PROJECT>/.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>
7, adjust eclipse run memory.
In Eclipse's installation directory, edit the Eclipse.ini file with EditPlus, and change the parameters to:
-vmargs
-dosgi.requiredjavaversion=1.6
-xms512m
-xmx512m
-xx:permsize=256m
-xx:maxpermsize =256m
-xx:-usegcoverheadlimit
From the above seven aspects for you to summarize the Eclipse edit jsp, js file card dead phenomenon solution, I hope to help.