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
 "Add Using Directive" improvements
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2322 Posts

Posted - May 04 2021 :  09:10:09 AM  Show Profile  Reply with Quote
Would be nice if VA could allow us to chose where to insert the using directive. Not always the beginning of the file is the right place. Sometimes its better to place it inside the current namespace declaration.

There is an good discussion on SO about this: https://stackoverflow.com/questions/125319/should-using-directives-be-inside-or-outside-the-namespace

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - May 04 2021 :  10:34:17 AM  Show Profile  Reply with Quote
This is an interesting thought.

Would you want to select current namespace or top of file each time? Or just leave this as a setting in VA Options, so it always uses that setting?

What if you are 2 or 3 namespaces deep, just use the current, probably most deeply nested namespace? Or ask which namespace?

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

Uniwares
Tomato Guru

Portugal
2322 Posts

Posted - May 04 2021 :  11:06:46 AM  Show Profile  Reply with Quote
Good questions, perfect would be if VA could detect possible clashes and place it accordingly, but that would be a deep analysis of all code in the solution. For starters probably a setting in the options "innermost" or "outermost", might be sufficient.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - May 05 2021 :  08:17:25 AM  Show Profile  Reply with Quote
That makes sense, I have put in a feature request for this, to see what our developers make of it:

case=145674

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