views:

91

answers:

3

Does VS2008 have a feature akin to Eclipse's ability to automatically add import declarations for undefined namespaces?

A: 

VS will help you resolve references to types defined in namespaces that you haven't included. Right-click on a class name, select "resolve", and pick an option.

David Lively
A: 

As David mentioned there is no way like in Eclipse, unfortunately. Additional plugins however, like Resharper or CodeRush support you further in these tasks.

Juri
+2  A: 

if you have a refrence to the assembly that contains the namespace just go over(or select) the type you want add its namespace then CTRL + . and it will add the namespace

this is what it looks like :

alt text

Yassir