user3748908
user3748908

Reputation: 905

How to get suggestions for compilation errors in Intellij

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

Answers (1)

Bohuslav Burghardt
Bohuslav Burghardt

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.

enter image description here

This also works for other types of inspections, such as warnings, not just compilation errors.

Upvotes: 1

Related Questions