News

Visual Studio 2013 Add-In Allows Code Searching Across Web

With Bing Code Search, Visual Studio developers get context-aware search capabilities from within IntelliSense.

Microsoft is doing its best to keep developers in Visual Studio at all times. For instance, a JSON debugger was added to Visual Studio 2103 Update 2, and Windows Embedded Compact 2013 integration with Visual Studio 2013 is coming this spring. Now, add Bing Code Search to that list.

Bing Code Search, a collaboration with numerous partners, including (of course) Bing, Microsoft Research, the Visual Studio team and StackOverflow, allows developers to search for code snippets within Visual Studio itself, instead of leaving the IDE and performing a typical browser-based search. The free add-in to Visual Studio simplifies the process of searching for reusable code across the Web, including sites like MSDN, StackOverflow, CSharp411 and Dotnetperls. Microsoft Research has even produced a video on how to use the add-in.

The add-in does more than just finding C# code snippets, though, as this TechNet blog post explains: "The add-in automatically adapts the snippets to match the developer's context, making the suggested snippets easier to understand and better prepared for reuse."

Bing Code Search can be launched directly from IntelliSense. It adds a new item at the top of the IntelliSense window, asking "How do I..." At that point, according to a Visual Studio team blog entry, it's a matter of typing in the task for which you're seeking code (the example in the blog is "read a file line by line"). After pressing Enter, Bing retrieves relevant code samples, using contextual information like project type and semantics to give the best results.

The results show up around the code, along with Microsoft's best guesses as to which samples are the highest quality and most likely to help.

Currently, the add-in is limited to C# samples and Visual Studio 2013, but Microsoft said it's looking for ways to broaden Bing Code Search's functionality for more languages (a number of comments on the download page pleaded for a Visual Basic version, for example. Additionally, reports are indicating that it's conflicting with the popular third-party product ReSharper).

Those limitations don't seem to be dampening enthusiasm for the product, though. The TechNet blog said that even though it's brand new, 40,000 searches per day were being made by developers worldwide. Initial studies have shown that it's about 60 percent faster, on average, than searching without the add-in.

About the Author

Keith Ward is the editor in chief of Virtualization & Cloud Review. Follow him on Twitter @VirtReviewKeith.

comments powered by Disqus

Featured

  • Mastering Blazor Authentication and Authorization

    At the Visual Studio Live! @ Microsoft HQ developer conference set for August, Rockford Lhotka will explain the ins and outs of authentication across Blazor Server, WebAssembly, and .NET MAUI Hybrid apps, and show how to use identity and claims to customize application behavior through fine-grained authorization.

  • Linear Support Vector Regression from Scratch Using C# with Evolutionary Training

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the linear support vector regression (linear SVR) technique, where the goal is to predict a single numeric value. A linear SVR model uses an unusual error/loss function and cannot be trained using standard simple techniques, and so evolutionary optimization training is used.

  • Low-Code Report Says AI Will Enhance, Not Replace DIY Dev Tools

    Along with replacing software developers and possibly killing humanity, advanced AI is seen by many as a death knell for the do-it-yourself, low-code/no-code tooling industry, but a new report belies that notion.

  • Vibe Coding with Latest Visual Studio Preview

    Microsoft's latest Visual Studio preview facilitates "vibe coding," where developers mainly use GitHub Copilot AI to do all the programming in accordance with spoken or typed instructions.

  • Steve Sanderson Previews AI App Dev: Small Models, Agents and a Blazor Voice Assistant

    Blazor creator Steve Sanderson presented a keynote at the recent NDC London 2025 conference where he previewed the future of .NET application development with smaller AI models and autonomous agents, along with showcasing a new Blazor voice assistant project demonstrating cutting-edge functionality.

Subscribe on YouTube