Eclipse Quick Fix

Source: Internet
Author: User
Eclipse Quick Fix Use quick fixes

When you enter a letter in the Eclipse editor, the editor makes an error analysis of what you entered.

The Java Editor uses Java syntax to detect errors in your code. When it finds an error or warning:

  • Highlight errors with red wavy lines
  • Use yellow wavy lines to highlight warnings
  • displaying errors and warnings in the problem view
  • Displays yellow light bulbs and warning and error marks on the vertical ruler

The Quick Fix dialog box provides the solution. The Quick Fix dialog box can be called in the following ways:

  • Place the mouse pointer over the wavy line
  • Click on the small bulb
  • Place the mouse pointer over the highlighted text and select the Quick fix item on the Edit menu or press the shortcut key CTRL + 1

In, GetId is highlighted because there is no GetId () method named in the person class. In the pop-up fix, select "Create method ' GetId () ' In the type ' person '" to add the GetId () method to the person class.

You can also right-click the error entry in the problems view and select the Quick Fix dialog box that appears in the Fast Fix menu item, as shown in:

Eclipse Quick Fix

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.