Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Java Development User Guide
Previous Page Home Next Page

Quick Fix and Quick Assist

For most problems underlined with a problem highlight line, the Java editor can offer corrections. This is shown by the light bulb shown in the editor marker bar.

A Java editor indicating a quick-fixable problem with a light bulb in the editor marker bar

To see the correction proposals use the Quick Fix action
  • Set the cursor inside or near the highlight range, and select Quick Fix from the Edit menu or the context menu.
  • Set the cursor inside or near the highlight range, and press Ctrl + 1
  • Click on the light bulb

Quick fix is also available on a problem entry in the Problem view. The Quick Fix action will open a dialog to select the correction.

Note that the light bulb is only a hint. It is possible that even with the light bulb shown, it turns out that no corrections can be offered.
A overview of quick fixes available in the Java editor can be found here.

Quick Assists are proposals available even if there is no problem or warning. They use the same short cut and action like Quick Fix. Quick assists are used for local code manipulations. See the Quick assist reference for more information.

Related concepts
Java editor

Related reference

Quick assists
Quick fix
Java editor preferences
Edit menu


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire