"Eclipse/myeclipse Common Settings"

Source: Internet
Author: User

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
    1. Configure Workspace encoding format: windows->preferences->general->workspace, right text file encoding, select Other, change to GBK;
    2. Encoding format for configuration engineering: Project->preferences->resource->text file encoding;
    3. Configure the encoding format for Java files: Windows->preferences->general->contenttypes->java Source file->utf-8 ==Update;
    4. 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

  1. Look at the JDK version first, whether it is 1.6 or above:preference->java->compiler 下要改成1.6或以上
  2. Project Right->properties->java compiler-> change to 1.6 or above
  3. 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"

Related Article

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.