c++ - How to show constructor declaration with Visual studio 2012? -
when hover cursor on function called in code in visual studio 2012, small box pops show declaration. how let work constructors?
function(1, 2); // hover on function myclass a(1, 2); // hover on or myclass or use shortcut key
the problem c++'s syntax constructor calls. works fine normal methods because method calls. constructor calls mixed object declaration, , when hover on them, vs gives tooltip object's declaration because assumes that's want.
hovering on text gets same tooltip if had invoked "display quick info" command (ctrl+k, ctrl+i).
but there "display parameter info" command, invoked ctrl+shift+space, display information you're interested in constructors.
the trick have invoke command caret inside of parentheses. won't work when caret somewhere within identifier.
Comments
Post a Comment