BT
x Your opinion matters! Please fill in the InfoQ Survey about your reading habits!

IDE Integrated Search Engines

by Jeff Martin on Feb 25, 2014 |

 

The ease of Google searches and the popularity of code advice community message boards like StackOverflow do well to indicate the popularity of coding through web search.  Scott Hanselman wrote about the similar of idea of programming through copying.  Microsoft Research has observed these trends and taken the next evolutionary step by producing a plugin for Visual Studio 2013 that enables developers to conduct a code search directly from their IDE.

Bing Code Search for C# has been developed by a collaboration between the Visual Studio, Bing, and Microsoft Research teams.  This plugin integrates with VS2013’s editor and is activated by choosing the new “How do I…” option from the IntelliSense drop-down menu.  When selected, an expanded window opens inline allowing you to enter search terms for Bing to analyze.  After entering a query Bing will search for relevant answers across MSDN, StackOverflow, Dotnetperls, and CSharp411.  The results are easily indexed through, and each sample’s origin is clearly labeled.

A Microsoft spokesman indicated that Microsoft has made agreements with these particular websites to share their content with Visual Studio users.  Answers sourced from StackOverflow additionally have a link back to the original contributor of the code snippet.  While it is possible to add additional providers, nothing is planned at this time.

The plugin uses various pieces of “magic” to retrieve what considers to be useful answers including the semantic context and the type of project being worked on.  Microsoft Program Manager Ala Shiban notes that this is one of the uses for the Roslyn compiler project.

Of interest is what of type of security and protections the code entered for queries received, as developers working on proprietary software projects may run into conflicts with corporate policies if company code is being transmitted outside their employer.  At the time this article was published no information was available about specific privacy protections.   

Beyond making the plugin available for Visual Studio 2013 users, Microsoft Research has also produced an online demo for those interested in sampling the plugin before installing.  Microsoft’s Bing isn’t the only search engine with programming-specific customizations, The Hacker News recently reported search engine DuckDuckGo has also programmer focused search tools available (albeit without an IDE plugin as of yet.)

 

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Educational Content

General Feedback
Bugs
Advertising
Editorial
InfoQ.com and all content copyright © 2006-2014 C4Media Inc. InfoQ.com hosted at Contegix, the best ISP we've ever worked with.
Privacy policy
BT