1

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

4

3 に答える 3

3

名前空間を含むアセンブリへの参照がある場合は、その名前空間を追加するタイプに移動 (または選択) し、CTRL + . 名前空間を追加します

これは次のようになります。

代替テキスト http://img197.imageshack.us/img197/6976/91301094.png

于 2009-11-06T21:36:47.397 に答える
0

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.

于 2009-11-06T21:32:12.250 に答える
0

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

于 2009-11-06T21:35:33.190 に答える