question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
CyrusNajmabadicommented, Dec 7, 2022

Roslyn suggests the right thing here, indicating a misconfiguration with those projects (for example, perhaps they set the bit indicating that ‘String’ is teh preferred user style). You would have to take it up with them. We give teh user the choice on this for VS and we should be respecting that. If not, that would then be a bug here.

1reaction
KrisNiecommented, Nov 15, 2022

Sorry, I see it’s the problem of ReSharper.

Have a nice day!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Intellisense Issues in strings and methods/members
While coding in C# for Visual Studio 2010, I've noticed, that for some reason, after creating a delegate method, or using the "Extract...
Read more >
Visual Studio IntelliSense Not Working? What To Do.
Visual Studio IntelliSense is a vital tool for most C# and .NET developers out there. But what should you do if it stops...
Read more >
IntelliSense in Visual Studio
IntelliSense is a code-completion aid that includes a number of features: List Members, Parameter Info, Quick Info, and Complete Word.
Read more >
Intellisense not working for Visual Studio Code
All I seem to get is the onClass intellisense. The Transform, GameObjects ect is not coming up. Even tried all the options in...
Read more >
Visual Studio 2022 Intellisense is so good it's almost creepy
I agree, it is hilarious when I make a class with a property called FirstName and VS immediately suggests another called LastName. Or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found