Using C # in Visual Studio programming to introduce Bing search code

Source: Internet
Author: User
Keywords C # Bing search code
Tags access bing bing search bing search code browser code environment examples

Update: For those who use extensibility instead of the Visual Studio IntelliSense experience, you can still use ' Alt ' as a shortcut to access this feature or assign ' Tools.launchsnippetsearch ' commands to the shortcut you choose (in the tool- > Options-> Environment-> Keyboard)

Imagine that you want to read the files line by row and process them. Today, we are likely to load a Web browser, visit our most interested search engine, and start making a well-designed keyword collection to help the search engine understand the problem we are trying to solve.

Ideally, we'll find a high-quality official document that contains examples, or find a topic with a high turnout rate from a large forum or group of question and answer websites. Then we'll scan the options and do some copying/pasting of the relevant content we're trying to find.

We hope this will make usability stronger and make it easier to find the relevant code for the task you are trying to accomplish.

Excellence

We want you to have a better experience. To do this, Visual Studio, Bing, and Microsoft have teamed up to provide a devlabs experience that will make code search a higher level.

When you find yourself able to use tasks to find code samples, you can directly trigger a new Bing code search experience with IntelliSense.

That triggers a vast inline experience similar to the hidden definition, focusing on code search. You enter the tasks you want to accomplish, such as ' Read files by line ' and press ENTER to get the code results tailored for you.

In the background, this query is securely transmitted to Bing along with the context fragment, which helps us to focus more on the richness of the query. We use meta data such as project type, semantic context (using the new C#/VB Editor service also known as ' Roslyn '!). ), and some other Microsoft research methods.

Those parts are accompanied by the query set, and then use Bing's huge search index and keyword analysis to track the pages, which are likely to contain some high quality examples from which you can get what you want.

From these pages, we use a lot of syntactic and semantic code metrics to isolate and arrange the relevant code samples.

Then you can easily see the sort results in Visual Studio that surround your code, along with the estimated quality of the samples we evaluate and the source (so you can dig).

Using the network

The implementation of this new technology can use almost the entire Web resource. However, we found some top-level, code-rich collaborative Web sites that require us to do everything we can to fully uncover the answers to many of the top user tasks.

We collaborate with MSDN, StackOverflow, Dotnetperls, and CSharp411 to directly submit some of the best code examples to Visual Studio.

DevLabs in the course of the experiment

To make this technology a little earlier, we first chose a subset of problems to track it. In particular, Bing code search is dedicated to providing solutions for C #, and we're looking for ways to make it fit in more languages.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.