开发者

Visual Studio 2008 automatically add namespaces like Eclipse

Does VS2008 have a feature akin to Eclipse's abilit开发者_StackOverflowy to automatically add import declarations for undefined namespaces?


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 http://img197.imageshack.us/img197/6976/91301094.png


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜