📜 ⬆️ ⬇️

Bing code search

When developing in C #, it is sometimes necessary to look at an example of using a language construct. There are many such examples on the Internet on MSDN forums, StackOverflow, and other resources. They are very helpful in programming. The Visual Studio team is pleased to present an add-on for Visual Studio 2013 that allows you to search for such examples directly from the code editor.

Now, if you need sample code, you can simply select the “How do I” item in the IntelliSence drop-down menu.


Then the PeekDefinition window will open with the found example, which can be copied into your code:


The environment itself will collect the necessary information about the context, for example, the type of project, the semantics of the code segment (using Roslyn) and other important points, and then send the request to the Bing search engine. The answer will also be analyzed from it will highlight the pages with a high rating, syntactically and semantically close to the context.
')
In order to make the search even better, MSDN , StackOverflow , Dotnetperls and CSharp411 are used as sources.

More details about the work of this add-on can be found in a small video . The add-on itself is located at http://aka.ms/bingcodesearch .

Source: https://habr.com/ru/post/212999/


All Articles