开发者

Visual Studio 2010 disable absolute namespace reference on autocomplete

When I'm coding in Visual Studio 2010, say that I have some interface:

Namespace Some.Huge.Terrible.Namespace.Adhering.To.Company.Standards
    Public Interface MyInterface
        ...
        Property SomeThing as String
        ...
    End Interface
End Namespace

And a class:

Public Class CoolThings
    Implements MyInterface

When I hit Enter after MyInterface, Visual Studio will put

Property SomeThing as String Implements Some.Huge.Terrible.Namespace.Adhering.To.Company.Standards.MyInterface.SomeThing

I would like it to, instead, simply put:

Property SomeThing as String Implements MyInterface.SomeThing

It does the same thing for all methods, etc. that I have to implement and it's mildly annoying to either have to look at a stupidly long reference, or clean it all up since I'm importing the namespace at the top of my class anyway.

Is there a setting in Visual Studio that I can use to switch t开发者_JAVA百科hat?

Thanks!


Unfortunately no there is nothing you can do here to prevent this. This is a limitation of the Vb.Net IDE and something the team is definitely aware of.

I did a quick search on connect and couldn't find an existing issue for this feature. It's generally referred to as "minimally qualified name". I encourage you to file a connect bug on this

http://connect.microsoft.com/VisualStudio

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜