1. Eclipse Settings 1.1
change the background color of the highlighted string (dark gray by default)
settings : Window->preferences->general->editors->text editors->annotations->occurrences
1.2
Common shortcut keys
Common shortcut keys in eclipse: http://www.open-open.com/bbs/view/1320934157953/
1.3
Modify the eclipse character set
- Configure Workspace encoding format: windows->preferences->general->workspace, right text file encoding, select Other, change to GBK;
- Encoding format for configuration engineering: Project->preferences->resource->text file encoding;
- Configure the encoding format for Java files: Windows->preferences->general->contenttypes->java Source file->utf-8 ==Update;
- When you do the product output of the RCP application, or the plug-in output, it is always error, either cannot compile through (the output to be re-compile), or the output of the plug-in runtime Chinese display garbled. At this time need to re-rcp application, or plug-in plugin project Build.properties add a line, javacdefaultencoding. = UTF-8. Let the output compile when you know the Java source file UTF-8 encoded. This setting needs to ensure that all Java source files are UTF-8 encoded, and if not all, refer to the Eclipse Help (Plug-in development environment Guide > Reference > Feature and Plug-in Build configuration), it is recommended that all Java source files are UTF-8 encoded.
Reference Document:http://blog.csdn.net/wubai250/article/details/6578784
1.4 Remove redundant tomcat that is configured in eclipse
Settings : Preferences–>server–>runtime environment
2. Eclipse Error 2.1 Code in remove override annotation or problems display
Error Reason : Compilation environment mismatch causes an error
workaround : The following three versions should be the same
- Look at the JDK version first, whether it is 1.6 or above:
preference->java->compiler 下要改成1.6或以上
- Project Right->properties->java compiler-> change to 1.6 or above
If MAVEN works: Project Right-click->properties->project facets-> Modify the version on the right to be consistent. To set up a compiled plug-in version of MAVEN project:
<plugin> <groupId>Org.apache.maven.plugins</groupId> <artifactid>Maven-compiler-plugin</artifactid> <configuration> <source>1.7</Source> <target>1.7</target> </configuration></plugin>
reference Documentation : MAVEN project management tools first Experience
"Eclipse/myeclipse Common Settings"