ctrl-space inside the parens
lordscarlet
2008-09-17 22:31:00
I just found that the equivalent to mouse hovering is View -> IntelliSense -> Quick Info
. If the solution does not arise here, I'll just use the shortcut Ctrl+K, Ctrl+I
.
Cut the first part of the line ("DateTime duracao = ") into the clipboard, then you should be able to hover over "Subtract" and see the return type. Not ideal, but I find myself doing it all the time!
Select "Build|Clean Solution" - this cleans up intermediate files and other things. More importantly, it also clears the list of error messages, restoring normal behaviour of Intellisense.
Since duracao is a DateTime, and the error message is 'cannot convert Timespan to DateTime' - you can already see the subtract function is returning a Timespan