Microsoft launches Bing Code Search extension for Visual Studio

Microsoft has announced a new method for programmers to find and insert code in their applications. Today, Microsoft revealed the introduction of the Bing Code Search extension for Visual Studio, which represents a collaboration between the Bing, Visual Studio and Microsoft Research divisions.

The official Bing blog states when the Bing Code Search extension is made a part of Visual Studio, programmers can use it to search for code samples from a number of web-based repositories like Microsoft's own MSDN, along with StackOverflow, Dotnetperls and CSharp411. When a search string is typed in, the code results are supposed to use the same variable name found in the original code of a user's project. They can then review and add the code they were looking for directly in Visual Studio.

Microsoft adds:

Bing uses signals and metadata including project type and semantic context (e.g. C#/VB compiler) combined with our vast index to deliver relevant code samples directly into the Visual Studio experience. In a few short clicks, you have a set of code snippets for review and copy into the Visual Studio editor without missing a beat.

This is just the latest effort by Microsoft to add Bing features in the company's other products. That includes integrating the search engine with Kinect voice commands in the Xbox One console and inside Windows 8.1 directly via Bing Smart Search.

Source: Microsoft | Image via Microsoft

Report a problem with article
Previous Story

Yahoo! used Microsoft CEO appointment as a reason to delay Bing search rollout

Next Story

Microsoft to cut digital price of Xbox One's Ryse: Son of Rome to $39.99 for one week

20 Comments

Commenting is disabled on this article.

M_Lyons10 said,

Yeah, like LogicalApex said, this could go bad it misused...
Not much worse than Googling and copy-pasting code. Brain-dead code monkeys won't be coming up with Shakespeare's plays any time soon.

Krome said,
Yup. In "theory", this is awesome idea. But I can see this introduce more malicious intent than good.
"malicious intent"? Exaggerate much? A dumb coder will remain dumb regardless of whether he uses this or not, but how will he suddenly become malicious?

Romero said,
"malicious intent"? Exaggerate much? A dumb coder will remain dumb regardless of whether he uses this or not, but how will he suddenly become malicious?

According to this, it is designed to change the code sample to fit the variables, etc in use in your code.

Copying code from Google at least requires that you read it and understand it enough to work it into your solution (if not understand it entirely)...

This is not the same, and can certainly result in problems.

The coder still needs to understand enough to select what to insert and I very highly doubt it'll enable any code snippet to be dropped into an existing project with no work involved at all. We're not quite there yet in terms of AI. In this case irrespective of whether the extension is used or not any problems that arise are purely going to be a case of PEBKAC. As for malicious, still don't see how that applies. A coder intent on wreaking mayhem (as if we're living in the last century and version control doesn't exist) is not going to waste time using this to download code snippets for insertion. The very suggestion sounds ridiculous.

Romero said,
Can this be installed in VS Express?

I don't think so. Extensions are only available in paid versions of VS.

Romero said,
Why does VS Express have this dialog and allow you to browse for Extensions then?

http://i.imgur.com/UJtjw2u.jpg

It only works with NuGet and a few first-party ones. If you try to install any other ones after downloading them you will get an error dialog saying the feature is only available in the full VS.

Romero said,
Too bad, some limited support for simpler third party extensions at least would have been nice.

Well, maybe this one will end up being express-available.

Great... It is bad enough that coders are just copying code from Stack Overflow without any real understanding of what it is doing and security concerns. Now the copy-paste is integrated into the IDE with this.

They're probably just responding to user demands and providing the feature, they can't provide brains to go alongside it (unfortunately).

LogicalApex said,
Great... It is bad enough that coders are just copying code from Stack Overflow without any real understanding of what it is doing and security concerns. Now the copy-paste is integrated into the IDE with this.


HAHA, Fair enough. Using code that you do not understand should always be discouraged.

I never understood people that use code that they don't understand...

LogicalApex said,
Great... It is bad enough that coders are just copying code from Stack Overflow without any real understanding of what it is doing and security concerns. Now the copy-paste is integrated into the IDE with this.


I thought programming required excellent copy & paste skillzzz!

/s

LogicalApex said,
Great... It is bad enough that coders are just copying code from Stack Overflow without any real understanding of what it is doing and security concerns. Now the copy-paste is integrated into the IDE with this.

It would not surprise me if this behavior was the cause of the holes in all the high profile websites that have been hacked.

LogicalApex said,
Great... It is bad enough that coders are just copying code from Stack Overflow without any real understanding of what it is doing and security concerns. Now the copy-paste is integrated into the IDE with this.


There are plenty of us that copy-paste AND understand the code we're copy-pasting. I don't want to lose out on such a feature just because some dimwits cannot use it properly.