Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Visual Studio, how can I filter the auto-complete so it doesn't display the extension method and display native members only?

If I have a

List<string> x;

When I write x. the auto-complete dialog will open and it will display a lot of linq methods and so its hard for me to find the methods that are native to the List<T>.

Is there a way to temporarily let the auto-complete not display the linq extention methods?

Right now I am using the method of removing the using System.Linq; but I was looking into a more efficient way.

thanks

like image 736
Karim Avatar asked Nov 14 '22 19:11

Karim


1 Answers

You could alias the System.Linq namespace in your using:

using AliasLinq = System.Linq;

That way, none of the Linq stuff will show up unless you first type AliasLinq.

like image 177
Tom Studee Avatar answered Jan 06 '23 16:01

Tom Studee