NetBeans Quick Tip #33 - Show Error Using Keyboard
By Roman Strobl on IX 05, 2007
One of my issues with previous releases of NetBeans IDE was that there was no way how to easily see an error in the editor. The code would get underlined by a red line if there was an error but to discover the error message I always had to move away from the keyboard and use my mouse to hover on the error mark. Then I could see the error and I would switch back to the keyboard to go fix it. Maybe there was a better way to do this but I didn't find it.
Today I realized that in NetBeans 6.0 there is a way how to achieve this - hurray, I don't have to switch to the mouse! So here's the trick - you need to move to the row with the error (with the underline) and press Alt-Enter - yes the same shortcut you use to invoke a hint (aka quick fix aka lightbulb). After pressing Alt-Enter on the row with an error you can see the cause of it:
I thought this was really useful, because switching to the mouse takes some of my time and I may lose concentration.