Microsoft has launched a new plug-in for Visual Studio 2013 that lets developers search for code snippets from within the IDE.
The plug-in is powered by Microsoft's Bing search engine. Bing Code Search draws on four partner websites for code snippets: Microsoft's MSDN, StackOverflow, Dotnetperls and CSharp411.
The plug-in integrates with Visual Studio's IntelliSense code completion feature. Developers can type in an expression such as "read a file line by line" or "generate an MD5 hash". "Behind the scenes, that query is securely beamed up to Bing along with contextual pieces that help us hone in on the fuller meaning of that query," Visual Studio Editor program manager Ala Shiban wrote in a blog entry.
"We use meta-data like the project type, semantic context (using the new C#/VB compiler services aka ‘Roslyn’!), and a few other sprinkles of Microsoft Research magic."
The user can switch through results from the four partner websites. The results display a star rating and a source.