Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Copy type information
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

WolfgangVogl
Junior Member

Germany
11 Posts

Posted - Nov 17 2017 :  05:51:12 AM  Show Profile  Reply with Quote
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!

Yes, we code!

feline
Whole Tomato Software

United Kingdom
18750 Posts

Posted - Nov 17 2017 :  06:11:59 AM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness
Go to Top of Page

WolfgangVogl
Junior Member

Germany
11 Posts

Posted - Nov 17 2017 :  06:43:18 AM  Show Profile  Reply with Quote
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!

Yes, we code!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000