Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: show error message only with keyboard

I love my keyboard. When coding(c++) in eclipse some time I do some syntactic mistakes. For example

std::String

it should have been std::string. I have been coding some java programs :p. What I m looking for is a way to display the error info

Type 'std::String' could not be resolved

using some keyboard shortcut. Instead of clicking on the bug icon that appears on the left side of the page. I know about CNTRL + '+' and '.' . So how do I do this ? Thanks

like image 914
Vihaan Verma Avatar asked Sep 20 '12 14:09

Vihaan Verma


1 Answers

In the source code editor, pressing F2 while the (keyboard's) cursor is at at underlined text opens an overly window that contains the warning/error description. Works for JDT/java, so I assume it's the same for CDT/c++.

In addtion, (in JDT/java) pressing F2 on methods/classes without problem shows the javadoc in an overlay window.

like image 191
schnatterer Avatar answered Sep 21 '22 12:09

schnatterer