Eclipse run optimization

 

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

When editing code in MyEclipse recently, using shortcut keys to copy and paste often causes the editor to pause for a short time, the cursor does not follow, but it does not respond, and it is almost suspended.

After thinking about it, it should be caused by what configuration on the editor or what function of the IDE, so I entered the Preferences to find the edit function, and tested one by one, and finally found that it was caused by the hyperlink function of the code.

Access method: Window -> Preferences -> General -> Editors -> Text Editors -> Hyperlinking

Change the shortcut key of the hyperlink to another key such as Alt (cannot be changed to shift)

Note: In Eclipse, you can often use Ctrl + mouse click to directly guide the editing interface to the relevant method, property, or class.

This function is really easy to use, but since the shortcut key for copying and pasting is also Ctrl, Eclipse can't respond when I operate quickly and cannot analyze my operation. Now I just need to change one other shortcut.

Original web address: http://liyanblog.cn/articles/2013/03/28/1364464592117.html#6555527-youdao-1-342-6bf3f08145fcae5f9805082906cbbf15

 

6. Modify the .project file of the project

The default js editor in eclipse is very slow, especially the solution when copying and pasting code

I am using the standard version of eclipse3.9 for javaEE on the official website without any plug-ins installed. When writing JS, the card is simply unbearable. I try to remove all the validates, including those in the menu and project properties. It is found in the project that the following red lines are still still valid. After deleting all the configuration sections corresponding to the red, the problem is solved, and editing JS is 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 the Eclipse running memory .

Edit the eclipse.ini file with EditPlus in the eclipse installation directory and change the parameters to: 

-vmargs

-Dosgi.requiredJavaVersion=1.6

-Xms512m

-Xmx512m

-XX:PermSize=256M 

-XX:MaxPermSize=256M

-XX:-UseGCOverheadLimit

 

Reference from: http://blog.csdn.net/bell2008/article/details/8758290

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326768068&siteId=291194637