Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Copy type information

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000