Editor Hints on Development Update Center
Editor Hints aka Suggestions aka Quick Fixes can be found on update center. Download the latest daily build and install modules Editor Hints and Java Hints (both are necessary!). This is alpha version of the hints, we would like to provide the functionality so that we get early feedback. Comments should be sent to: dev-at-java-dot-netbeans-dot-org. Bugs should be filed in Issuezilla, component java, subcomponent hints.
Currently the following hints are available through update center (all of them are still under development):
- Add Import
- Add Throws Clause
- Incompatible Types
- Incorrect Arguments
- Cast Parameter
- Implement Abstract Methods
- Unresolved Element
- Initialize Variable
The up-to-date status of hints is kept here:
http://java.netbeans.org/hints/index.html
The light-bulb appears when appropriate error is detected in source code. You can activate the hint by mouse or by pressing Alt-Enter. It is necessary that your cursor is placed at the red-underlined part of code for the lightbulb to appear.
Before somebody will ask me through comments: yes, surround with try-catch hint will be developed as well, it will appear on the hints page soon ;-)
Screenshots:
 Initialize variable
|
 Add throws clause
|
 Add import
|
 Cast parameter
|