In a report from TechCrunch, it looks like Microsoft has decided to partner with the programming community website, HankerRank, to bring code snippets into Bing’s search results.
With this partnership, according to TechCrunch, it will be possible to locate code quickly via search, as well as edit and execute code right from the search results page.
Search for something like “string concat C#” or a similar question and Bing will pop up the editor for you. Using the widget, you can also switch to other languages as well. Depending on the algorithm you’re looking for, the options here include C, C++, C#, Python, PHP, and Java.
According to Vivek Ravisankar, the founder of HackerRanker, Bing search results will return over 80 code snippets based on the most commonly searched terms. Bing’s group engineering manager for UX features and shared tools, Marcelo De Barros, called the new search feature a “Rosetta-stone model for programming languages.”
“In addition to learning how a certain algorithm/code is written in a given language, users will also be able to check how the same solution is constructed in a range of other programming languages too,” said De Barros.
Here’s how the code snippet works: