Reputation: 905
One of the features I love the most about Eclipse is that is shows you suggestions for compilation errors just by hovering over the error with the mouse. For instance, if I make a class implement an interface, it'll automatically offer me to add the unimplemented methods. Or if I use a variable I haven't created yet, it'll offer me to declare it.
Is there such a functionality in Intellij? If so, how can I turn it on?
Upvotes: 0
Views: 82
Reputation: 34766
Place your cursor on the underlined part of code which shows an error, hit ALT+Enter and pop-up menu with available quick-fixes will be shown as illustrated in the screenshot below.
This also works for other types of inspections, such as warnings, not just compilation errors.
Upvotes: 1