Bing Code Search – There is a very nice Visual Studio extension on the Visual Studio Gallery called Bing Code Search for C#. If you are running Visual Studio 2013, head on over there and download and install this extension. It really makes finding code snippets a piece of cake and is surely a fantastic productivity booster.
Bing Code Search
After you have downloaded and installed the extension, you will see it under Tools -> Extensions and Updates.
Go ahead and in the code editor of Visual Studio type in ‘h’ for ‘How do I’. You will see Intellisence respond with a Bing icon containing the text.
You can also activate the Bing Code Search window by typing Alt-A.
Once the Bing Code Search window is active, you will see a few areas of interest. Let us assume that I forgot how to run a process in a separate thread. In the search field, I type in my search and Bing Code Search returns code results. At the bottom of the screen you can see that there were three hits. You can scroll between these using the left or right arrows. The code results also list the source for the code, in this case DotNetPerls.com.
When I have found the code I think will work, I simply click on ‘Accept’ to insert the code in my code window. Apart from the two variables I need to replace (A and B), the code is fully functional.
What could be more easy that that? Sometimes I really hate having to leave Visual Studio to search for code. The Bing Code Search add-in makes this process very easy!