开发者

Visual Studio 2008 Intellisense Priority Settings

Is there someway to get VS 2008 intellisense to default to Properties over Classes in a n开发者_C百科ame collision?

Example:

Within my scope I have a property Foo, but I'm also using a class Foo. When writing code, if I start to type F o, VS2008 intellisense will think I mean the class Foo. I want it to think I mean the property Foo instead.


Unfortunately no this is not possible. Customization of the priority of value categories like classes / properties is not supported


There is no possibility in VS2010 and not even in ReSharper 5.0 to deal with this issue. It won't be a feature of ReSharper 6.0 as well, according to JetBrains. I use a different name for the property, when it starts making me aggressive and refactor it after I've done most of the work.

Update:

I reported the issue to JetBrains some time ago and I just got an eMail that the feature has been added and will be available in Release 6.1. So good news for ReSharper users on this one!

http://youtrack.jetbrains.net/issue/RSRP-273067?projectKey=RSRP


I was thinking the exact same thing today.

While the functionality is not in vanilla VS, it is quite possible to modify some code to add this functionality. For example, the XAML Presenter, probably named after the presenter component that you have to modify does something similiar.XAML Presenter

It narrows by namespace and sorts by attribute type. Basically, I'm just gonna take the list the Intellisense Completion Source gives and sort the list. Sounds simple enough.

More challenging is implementing the UI controls. I hate designing UI controls . . .

Edit:

However, I don't forsee a way to do this without breaking Resharper's Intelllisense features.


Use VS 2010, I suppose? I can't see which situation would make VS put classes over properties, though.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜