Stop suggesting System.Console before other Console classes

Hi. I am using a C# package called "Colorful.Console" (from http://colorfulconsole.com  ) for an application, however, Rider insists on always suggesting 'System.Console' whenever I try to call any Console function, despite there being a different non-system Console class in play, and it's doing this with an unparalleled level of insistence to the point of becoming infuriating.

 

Here is the undesired behaviour:

Autocomplete always suggests "Console (in System)" before any other suggestions, regardless of what's imported and regardless of what is used everywhere else in the class.

 

I have tried removing the System using directive, and only having the Colorful using directive, to no avail.

I have also tried an explicit using directive: "using Console = Colorful.Console;", again to no avail.

I have also tried unchecking Settings > Editor > Code Style > C# > Code Style > "Place 'System.*' and 'Windows.*' namespaces first when sorting 'using directives'. However, this is for sorting, so it doesn't actually help here.

Rider also automatically changes the line to use the System.Console whenever I type out the word ("Console") and add the period to make a function call (I'm not completely lazy!) - either it will append "System." to the start of the line or it will automatically add System to the using directives. It really doesn't want to give in!

How can I stop this behaviour before it drives me up the wall? There has to be a setting for this, surely?

Thank you in advance to anyone who can be of help.

-logiq

0
1 comment

Hello,
One of the possible reasons for such issue is the current statistics based on previous choices. I would suggest trying to Invalidate Cache/Restart option and see it after a while Rider suggests the desired Console. If it does not help, make sure you are running the latest Rider, collect diagnostics information and report the issue to our bug tracker. Thank you!

0

Please sign in to leave a comment.