I dreamed that I could see the names of the constructor / method / property along with the search results (Visual Studio Find In Files function), if applicable / available.
For example, if I searched for _dreamProvider in Sleep.cs, I would get something like this in the "Search Results" window:
Sleep.cs (5): protected IDreamProvider _dreamProvider;
Sleep.cs (10): Sleep (IDreamProvider): _dreamProvider = dreamProvider;
Sleep.cs (68): BeginColdSweats (int): var d = _dreamProvider.Create (DreamTypes.Nightmare);
Sleep.cs (74): BeginSomniloquy (int, string): var d = _dreamProvider.Create (DreamTypes.Epic);
This may come in handy if you want to immediately see in what contexts a code snippet is used (and not just a specific character), especially when analyzing legacy code and / or refactoring.
I could not find a VS addon that would bring this understanding of the structure of the code in the search results. And for this there is no special settings registry icon .
Do you know any VS add-ons or some hacks to achieve this or something like that?
thanks
Maxim gueivandov
source share