When typing C# code in JetBrains Rider, it gives a list of 'using' namespace suggestions. For example, typing 'List' will show a number of suggested 'using' namespaces it can add, like 'List<> (in System.Collections.Generic)'.
The annoying thing is, often the top suggestion is a namespace from a third-party library that you will never care about. Like typing 'Assert' will suggest using ModestTree from Zenject, something I will never need.
It's even so bad that I will already have a 'using' namespace for 'Assert' in my current class (in this case: using NUnit.Framework), and it will STILL suggest using the ModestTree as the top entry.
Is there any way to specify namespaces for a project that I will never want to use, and therefore not have them show up in the autocomplete suggestion? Perhaps a plugin?

(Since the currently accepted answer isn't the actual solution and not everyone bothers to read the comments, I'll add the answer here. It is based on OP's own comment)
There is a setting in Rider under Settings | Editor | General | Auto Import that controls this.
It's usage is described in the help, but in a nutshell you just add the namespaces/types to ignore to that list and they will never be suggested. You need to use wildcards to match partial names (such as entire namespaces)
For example, to exclude everything under the DocumentFormats. namespace, specify DocumentFormats.*.

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With