Chris
Chris

Reputation: 2991

Visual Studio 2008 Intellisense Priority Settings

Is there someway to get VS 2008 intellisense to default to Properties over Classes in a name 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.

Upvotes: 10

Views: 396

Answers (4)

Marc
Marc

Reputation: 13194

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

Upvotes: 1

Ry-
Ry-

Reputation: 225125

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

Upvotes: 0

surfasb
surfasb

Reputation: 968

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.

Upvotes: 0

JaredPar
JaredPar

Reputation: 755269

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

Upvotes: 3

Related Questions