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
 Feature Requests
 Copy Type of Member/Variable into Clipboard
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

hoiby
Senior Member

France
38 Posts

Posted - Jan 16 2009 :  05:21:22 AM  Show Profile  Reply with Quote
(I'm using Visual Studio 6)

Most of the time I create member reference before use it.
for exemple:

int setWidth(RECT& rc, int width){
  int left=rc.left;
  int& right=rc.right;
  right=left+width;
}


often I don't known the exact type of the member (here : "int")
so, I click on member ("left" or "right"),
I select the "definition" Edit Box in the "VA Navigation Bar",
I select the member type and copy it.

I'll gain a lot of time if it will be possible to assign a shortcut to this (for exemple a function like VAssistXCopyVariableDefinition...)

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jan 16 2009 :  1:43:36 PM  Show Profile  Reply with Quote
We are actually considering adding a new refactoring command to create / declare a variable based on a functions return type, which is basically the same idea. This is actually slightly easier since we are not dealing with functions here, but with other variables:

case=3964

zen is the art of being at one with the two'ness
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