Visual Studio 2010 - IDE command to search for extension method namespace?

I use + <heavily. > to find the type namespace and import these VS.NET types into my class files. Suppose I have a DateTime extension method called ToWebsiteString(). I would like to be able to type myDateTime.ToWebsiteStringand then press the equivalent of + <. > And display in the IDE a list of all available namespaces using this extension method so that I can simply select the namespace and VS.NET will import it into the class file I work in. Does it already exist?

If not, what is the most productive way you found for importing extension method namespaces?

Edit: Are there any free solutions for this?

Edit: Apart from the Resharper fees, there seems to be no free solutions for this, so I closed this question.

thank

+3
source share
2 answers

Resharper can do this for you.

Type myDateTime.ToWebsiteString, press Alt+Enter, and Resharper displays a list of namespaces that you want to select.

0
source

If you type / select an extension method, for example:

Html.ActionLink

Then press F12 with the cursor inside the extension method name, Visual Studio will transfer you to a class (and namespace) that will add this extension method, even if it is buried somewhere in some DLL (it shows you stubs of public methods), Good enough, works without Resharper.

0
source

All Articles