Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resharper "No Suggestions" box

I noticed that Resharper adds "No Suggestion" box on new properties in C# classes. Like this:

No Suggestion box is annoyance

This "No Suggestion" box does not add anything to the code, only obstructs lines of code below - and that is an annoyance.

Any way to make Resharper not show this box?

like image 439
trailmax Avatar asked Feb 09 '16 16:02

trailmax


1 Answers

You can edit the prop Live Template and remove the macro associated with the $NAME$ variable of the property.

What ReSharper is trying to do is suggest a name for the property, based on the type. If it's a bool property, there's not much it can suggest, but if it's a complex type, such as Address, then it can suggest a name such as Address. Also, if it's a List<Address>, ReSharper will suggest Addresses or List. So, it can be useful.

However, it isn't terribly helpful to show No suggestions - it might be nicer to just not show anything if the list is empty. I've added a feature request you can vote on and track: RSRP-453668

like image 200
citizenmatt Avatar answered Sep 29 '22 03:09

citizenmatt