Skip to content

IntelliSense suggests the "String" class, not the "string" keyword #62079

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


[severity:It's more difficult to complete my work]
In C# when I write the lower case "string" keyword, IntelliSense suggests always the upper case written "String" class. When I'm choosing it gets automatically faded out with the tip to use the lower case "string" keyword. I would expect that IntelliSense is smart enough to suggest the users preferences. ..Or at least suggest what the user has written (lower or uppercase version)


I believe this is because the MRU (most recently used) cache the completion uses. By default, we’d select the keyword if you typed string (which is a perfect match.) However, once you selected and committed the type item String , it’d be saved in MRU and next time you type string the completion would “remember” that decision and select type String even though string is a strictly better match. Manually selecting string and committing it would cause subsequent selection to pick string.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions