Eclipse knowledge point gathering

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

Reprinted from: http://rsy.iteye.com/blog/2095668

 

wrote
When using Eclipse to edit jsp and js files, the stuck phenomenon often occurs. After N times of Baidu on the Internet, after N times of optimization and adjustment, the stuck phenomenon gradually improves. It is not easy to say which method works. List all the methods used as follows:

1.
Unvalidate windows–>perferences–>validation
and click all except the manual, leaving only classpath dependency Validator under build

2. Turn off spell checking
windows–>perferences–>general–> editors->Text Editors->spelling

3. For MyEclipse, the editing tool when modifying JSP pages is
Window > perferences > General > Editors > File Associations >
Select *.jsp in File types > In Associated editors, select "MyEclipse JSP" Editor" is set to default.

4. Prevent the jar package from accessing the network
When editing JSP with eclipse or myeclipse, the use of smart prompts may cause the 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 the shortcut key to copy and paste often causes the editor to pause for a short time.
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.
Entry method: Window -> Preferences -> General -> Editors -> Text Editors -> Hyperlinking
Change the shortcut key of hyperlinking to other keys such as Alt (cannot be changed to shift)
Note: In Eclipse, you can often use Ctrl + mouse button Click to directly direct the editing interface to the relevant method, property, or class.
This function is really easy to use, but because 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 another shortcut.
Original web address: http://liyanblog.cn/articles/2013/03/28/1364464592117.html#6555527-youdao-1-342-6bf3f08145fcae5f9805082906cbbf15


6. The default js editor in eclipse
to modify the .project file of the project is very slow, especially when copying and pasting the code. The solution is to use the standard version of eclipse3.9 for javaEE on the official website without any plug-ins installed. When writing JS, it is impossible to get stuck. Bear with it, try to remove all validates, including those in the menu and project properties, to no avail. Later, in the project root directory ..project, I found that the following red lines are still all validators. After deleting all the configuration segments corresponding to the red, the problem is Solved, 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>
Original link: http:/ /blog.csdn.net/bell2008/article/details/8758290

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

 

Guess you like

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