I've gotten used to adding using System.Linq;
for IEnumerable
extension methods, but there have been times when I've tried to use an extension method on a class and it didn't show up in intellisense and I spent way too much time trying to figure out what's wrong before realizing I just need a using statement that Visual Studio didn't find for me. Is there a VS2010 extension that will find extension methods in the standard Ctrl + . View.ShowSmartTag
feature?
Asked
Active
Viewed 428 times
5

kenwarner
- 28,650
- 28
- 130
- 173
-
You want VS to search _every_ `static` class in every assembly you've referenced for extension methods? That would be slow. – SLaks Jul 20 '11 at 14:12
-
1isn't VS scanning every assembly anyways? – kenwarner Jul 20 '11 at 14:27
-
Yes, but not every static class. – SLaks Jul 20 '11 at 14:27
1 Answers
0
Can't you just type the name of the extension method class, then do a Ctrl + .
on it. I just tested that and it should work even if the namespace is different. Or are you wondering if there is a way to just type variable.Ext() and do ctrl + .
period on that? Although I tested on VS 2012 so maybe that's why. I am not aware of any extension to automatically detect extension methods.

Eric Bowser
- 62
- 7