Closed josefpihrt closed 2 weeks ago
Tag @kuhlenh @CyrusNajmabadi @rchande @DustinCampbell
How do people feel about changing match preferences in cases like this?
Basically, an exact case-sensitive, CamelCase match would beat out case-insensitive other matches. I think that's ok. If the filter text contains capital letters, that's a strong signal this is what the usre wants. I think we could safely take this.
:+1: ran into this today...wanted to do DateTime.Now.AD
to filter to AddDays()
but it kept just preselecting Add()
. As long as we make it case-sensitive, this should be fine.
I"m also in favor of this. Sounds like a good tweak to me.
I realized that name can also start with two upper-case letters (interface name). So I would say that priority should go like this:
Also see #16053 for discussion and the current behavior.
This would address the same issue as
EDIT: the tn
case mentioned there. Not the MF
case though.tn
case there is exact match
I would propose to take camel-cased identifiers into consideration. This could improve developer productivity when typing local variable name (or parameter name).
A simple rule could be applied:
Current behavior:
How about this one, happens if you have added using System.ComponentModel;
:
ArgumentNullException
is a better match, and also happens to be exactly what I wanted.
PLEASE make intellisense case-aware.
When I type myV
it should select myValue
instead of MyValue
.
When I type Myv
it should select MyValue
instead of myValue
.
Here's the kicker: When a user bothers to use the shift key to capitalize a letter, they want the variable or member that HAS that letter capitalized. I'd die of joy if you guys can make this happen. PLEASE.
@rchande , I have no idea how I managed "unassign" you above ... hopefully you can fix that, sorry.
Version Used: Visual Studio 2017 RC 15.0.0-RC4+26206.0
Currently, when I type CR, a method with name C...R... is selected only if there is no method with name Cr...
I would propose that if I type CR and there is a method with name C...R..., it should take precedence over a method with name Cr...