I think this would be a nice addition to VA X.
Say I am editing a C# or a C++/CLI file and I start using a class that I haven't included with the using, and I really can't remeber which name space it may be buried in. It would be useful if VA X could figure out that I have not included the namespace that class lives in.
so for example:
using System;
using System.Text;
using System.Collections.Generic;
namespace Foo
{
public class Bar
{
void FooBar(String filename)
{
XmlTextReader reader = new XmlTextReader(filename)
}
}
}
I start using the XmlTextReader class, When VA X reparses the file, it would know it is a unknown symbol, and compare it with the list of using's at the top of the file and figure out that I do not have System.Xml.
so then we get:
using System;
using System.Text;
using System.Collections.Generic;
using System.Xml;
namespace Foo
{
public class Bar
{
void FooBar(String filename)
{
XmlTextReader reader = new XmlTextReader(filename)
}
}
}
This is also useful if I know a class lives in the System.Xml namespace but can't remember if it lives in a namespace deeper in the root of System.Xml, for example.