T O P I C R E V I E W |
WolfgangVogl |
Posted - Nov 17 2017 : 05:51:12 AM Is it possible (and how) to copy the type information of a variable to clipboard?
e.g. I have something like auto someStuff = methodReturningASpecificType(anotherVar);
If my mouse is over "someStuff" or over "anotherVar" I'll see the type of it in a tooltip (this way I'm sure the type information is avaiable somethere in the ide). Can i just use a snippet/hotkey/... to copy this type information to my clipboard? This would be really useful!
Thank you!
|
2 L A T E S T R E P L I E S (Newest First) |
WolfgangVogl |
Posted - Nov 17 2017 : 06:43:18 AM Thank you very much feline - I haven't noticed this bar yet! Works like a charm - maybe it would be an "easy" future request to get an hotkey for this but your solution is perfectly good! |
feline |
Posted - Nov 17 2017 : 06:11:59 AM If you place the caret into the variable "someStuff", VA will show details of the variable in the Context and Definition fields, which are normally at the top of the editor window, and are where the Alt-M list appears. If you now place keyboard focus into the Definition field, on the right hand side, you can select and copy out the type information.
Not quite as fast as a hotkey, but fairly quick and easy. |