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
 offer option to insert fully qualified name
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

txchrisriley
New Member

USA
3 Posts

Posted - Dec 18 2010 :  4:14:09 PM  Show Profile  Reply with Quote
Using VA in C#, I begin typing the name of a class that is not in my current "using list" at the top of the file, VA offers the ability to auto-add this using for me, but wondering if we could get an option added to this menu to add fully resolved class name rather than inserting the using.

In the image attached, I want to just replace the NetworkDataInputSourceProgress class found with Cerion.DataAccess.INIDSImpl.NetworkDataInputSourceProgress rather than adding the "using Cerion.DataAccess.INIDSImpl;" to the top of my source file.

Thanks!



feline
Whole Tomato Software

United Kingdom
18947 Posts

Posted - Dec 20 2010 :  5:10:45 PM  Show Profile  Reply with Quote
Out of interest is there a reason you would like this to happen? I would expect adding the using statement to help keep your code more readable, since you would then be using "shorter" names.

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

txchrisriley
New Member

USA
3 Posts

Posted - Dec 21 2010 :  10:44:41 AM  Show Profile  Reply with Quote
Unfortunately we sometimes deal with class names that are the same across namespaces, so doing a using on both causes problems and doing a fully qualified [namespace].[classname] is required.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18947 Posts

Posted - Dec 21 2010 :  4:31:03 PM  Show Profile  Reply with Quote
I see now, in this situation this makes perfect sense. I have put in a feature request for this, to see what our developers make of this:

case=53551

For now, are you aware of the build in IDE commands that might help here? In VS2008, for me, the keyboard binding is Alt-Shift-F10 to open the drop down menu when the caret is on the class name. One of the options is to replace the class name with the fully qualified class name.

Not quite the same, but hopefully this will help a bit.

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

txchrisriley
New Member

USA
3 Posts

Posted - Dec 23 2010 :  10:47:56 AM  Show Profile  Reply with Quote
Thanks much. Happy Holidays!
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