Bing Code Search for C#

Free

This package allows you to search for snippets from the cloud and inserts them into your code without leaving Visual Studio.

(41) Review
Visual Studio
2013
Download (24,098)
3/8/2014
1.0
View
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews (41)
Q and A (21)
Sign in to write a review
Sort by:

by payn-jp | April 07 2014

Keep crashing after installation. VS activity log contains following entry. Just found that this bug is known for long time and MS is not doing anything with that. So disappointing especially when this was presented on Build 2014 as cool extension. MS is building nice picture about company here :).

<entry>
<record>1523</record>
<time>2014/04/07 13:21:12.429</time>
<type>Error</type>
<source>Editor or Editor Extension</source>
<description>System.NullReferenceException: Object reference not set to an instance of an object.&#x000D;&#x000A; at Microsoft.VisualStudio.Editor.InvokePeek.IntellisensePresenterProvider.GetUIElement(CompletionSet itemToRender, ICompletionSession context, UIElementType elementType)&#x000D;&#x000A; at Microsoft.VisualStudio.Language.Intellisense.Implementation.Helpers.&lt;&gt;c__DisplayClass2`2.&lt;FindUIElement&gt;b__0(IUIElementProvider`2 provider)&#x000D;&#x000A; at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.InstantiateExtension[TExtension,TMetadata,TExtensionInstance](Object errorSource, Lazy`2 provider, Func`2 getter)</description>
</entry>

by Shemeer NS | March 11 2014

Nice thought,

http://shemeerns.com/plugins/websearch-plugin/

WebSeach plugin helps us to search from Inside Visual Studio IDE, Some of the features are given below

Multiple search options included in all Text Editor, Reference Items, Error List. (Integrated search options for Visual Studio IDE)
Currently this Add-in works fine with all most all Visual Studio versions.
You can customize web-search by configure option.
Open Search in Default Web Browser or Visual Studio Tab or any other installed browser.
Change WebSearch context menu position
Easy access with Shortcut key. I use Alt+F1.
WebSearch context menu availabe in all most all editor files.
WebSearch menu also availabe in Tools menu with default search option.
Configurable shortcut key.
WebSearch menu in Tools menu
WebSearch context menu in all Text Editor, Reference Items, Error List.

by Maxime2Sydney | March 02 2014

Not an easy job, but surprisingly neat, and correct! Well done guys ;)

by MauricioBuso | February 24 2014

Not Working with DevExpress CodeRush too.

by Vrane | February 24 2014

Great extension :)

But it's not working with Resharper installed and using Resharpers intellisense :(

UPDATE:

- after installing this extension, Peek Definition does not work anymore...

by khoa chung | February 22 2014

Do i have to update my VS to Update 1 or is this extension conflict with Resharper :( Doesn't work on my machine.

by kevin-mcc | February 21 2014

Very nice and useful tool. I'm looking forward to support for more languages.

by ChenFeifei | February 21 2014

Please support C++

by Carl Clark | February 21 2014

Really neat! Love the way it inserts the code sample straight into my code.

by Rafi21 | February 20 2014

by Andre Minelli | February 19 2014

Awesome idea, bad execution: on my VS 2013 it is crashing when I open the intellisense using CTRL + <Space>. But using the ALT + A shortcut it works.

Anyway, this is the description of the error on ActivityLog after CTRL + <Space>:

System.NullReferenceException: Object reference not set to an instance of an object.&#x000D;&#x000A; at Microsoft.VisualStudio.Editor.InvokePeek.IntellisensePresenterProvider.GetUIElement(CompletionSet itemToRender, ICompletionSession context, UIElementType elementType)&#x000D;&#x000A; at Microsoft.VisualStudio.Language.Intellisense.Implementation.Helpers.&lt;&gt;c__DisplayClass2`2.&lt;FindUIElement&gt;b__0(IUIElementProvider`2 provider)&#x000D;&#x000A; at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.InstantiateExtension[TExtension,TMetadata,TExtensionInstance](Object errorSource, Lazy`2 provider, Func`2 getter)

I have several plugins installed: VsCommands, Productivity Power Tools, Web Essentials, AutoT4MVC, SpecFlow, NCrunch (trial), among others....

by nrolland | February 19 2014

This is a really great extension : it is the only one of its kind !
It works perfectly here (VS2013, no resharper)


Quite polished for a first version, and I am sure will get better after the the first feedbacks.

Good to see innovation from research in action !

by EduardoPires | February 19 2014

It doesn't works!

If you have the Microsoft.WinJS SDK installed you can't use the code search.

Conflicts due MS extensions with same id. How it is possible? :P

Exception detail:

<entry>
<record>747</record>
<time>2014/02/19 12:52:01.979</time>
<type>Error</type>
<source>Extension Manager</source>
<description>Extension will not be loaded because an extension with the same ID &apos;Microsoft.Windows.DevelopmentKit.Desktop&apos; is already loaded at C:\PROGRAM FILES (X86)\COMMON FILES\MICROSOFT\EXTENSIONMANAGER\EXTENSIONS\MICROSOFT\WINDOWS KITS\8.0\DESKTOP SDK\...</description>
<path>C:\PROGRAM FILES (X86)\COMMON FILES\MICROSOFT\EXTENSIONMANAGER\EXTENSIONS\MICROSOFT\WINDOWS KITS\8.1\DESKTOP SDK\</path>
</entry>

by jasonweiyi | February 19 2014

@Andre Minelli:
1. can you paste the exception trace?
2. Do you have other addins installed? if so, which ones?

by mjs3339 | February 18 2014

It's a nice concept however, it's missing some features that I would expect from a VS2013 extension. When invoked the screen does not match the VS theme that I have setup. The insert screen cannot be pinned, or promoted to the document well. Since it pastes the Accepted code wherever Intellisense was invoked you can make a nice mess of the code. Since the code that is found may be someone just musing some one of many possible answers to a question, pasting this untested code can cause problems. Why can't the found possible solution be copied and pasted manually.

by Harold Short | February 18 2014

It needs keyboard access to the "How do I..." entry in the IntelliSense menu, and support for VB.NET. Otherwise, awesome!

by Mostafa Abd-Ellatief | February 18 2014

by JayJee | February 18 2014

Good idea, bad execution. Crashed my Visio. Needs a key shortcut or else it is useless

by gmmkang | February 18 2014

please please VB.NET release.

by Don Reynolds | February 18 2014

It looks fantastic.

I forwarded the link around to some of my peers before I realized that it is only for C#.

Will there be a VB.NET release?

1 - 20 of 41 Items   
Sign in to start a discussion


  • Nothing shows up.
    1 Posts | Last post Tue 11:10 AM
    • The menu doesn't show up. "How do I". 
      Is there somewhere i can find a options menu or plugin manager?
      Thank you in advance
  • Not working behind a corporate fire wall.
    2 Posts | Last post March 31, 2014
    • I tried the exact example from the demo video http://research.microsoft.com/apps/video/dl.aspx?id=208961&l=i but the query "read file line by line" returned "No code snippets found".
      
      Note that I'm behind a corporate fire wall.
      In VS 2012, I had to add the following to devenv.exe.config before it was able to access the online gallery and product updates.
      
          <system.net>
            <defaultProxy>
              <proxy proxyaddress="http://<our proxy>:<our port>"/>
            </defaultProxy>
              <settings>
                  <ipv6 enabled="true"/>
                  <servicePointManager expect100Continue="false" />
              </settings>
          </system.net>
      
      This is no longer necessary with VS 2013, but could it be that the Bing code search requires access to some specific ports or uses a hard-coded-non-proxy-internet-access?
      
    • Exactly what i experience!
  • Shortcut Key doesn't work on blank lines
    1 Posts | Last post March 28, 2014
    • The shortcut key (which I have since reassigned to Alt+S) does not work when the cursor is on a blank line.  I'm not sure if this is a bug or not.
  • not working
    1 Posts | Last post March 20, 2014
    • it's installed but bring up intellisense, bing code search is not there.
  • It works!
    1 Posts | Last post March 12, 2014
    • ihar_z is right. After setting a different keyboard shortcut the tool will work. Thank you.
  • VB.NET version please !!!!!!!!!!!
    1 Posts | Last post March 04, 2014
    • Please support VB.NET
      
  • VS Express 2013
    9 Posts | Last post March 03, 2014
    • Does it work for VS Express?
    • I get this error after being told to look in activitylog.xml. I type string. into a blank constructor of an MVC controller.
      
      790 ERROR System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.VisualStudio.Editor.InvokePeek.IntellisensePresenterProvider.GetUIElement(CompletionSet itemToRender, ICompletionSession context, UIElementType elementType) at Microsoft.VisualStudio.Language.Intellisense.Implementation.Helpers.<>c__DisplayClass2`2.<FindUIElement>b__0(IUIElementProvider`2 provider) at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.InstantiateExtension[TExtension,TMetadata,TExtensionInstance](Object errorSource, Lazy`2 provider, Func`2 getter)   Editor or Editor Extension 2014/02/17 18:13:56.872 
    • I'm not sure how to reproduce what you reported. Are you getting an exception in the Bing Code Searcher window? what query you typed in?
    • VS Expression does not support extensions.
    • I posted here by accident. I have VS 2013 pro.
    • I press Ctrl Space and get the error - on a blank line.
    • 2014/2/19 9:07:51 - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
         at VSIXInstaller.App.InitializeInstall()
         at System.Threading.Tasks.Task.InnerInvoke()
         at System.Threading.Tasks.Task.Execute()
      
      When I tried to install this add-in, I got these error. could you please help find the root cause and reslove it ?
      
    • When I attempted to install CodeSnippets.vsix in Express 2013 for Web, I got an error message: Installation Failed. The installation was unable to install the extension to all the selected products....This extension is not installable on any currently installed products.
      
      Very disappointing. I saw a demo at a .Net meetup yesterday and wanted to try it at home before I try it at work. We did observe during that presentation that enabling this extension broke Peek. So, you may have to turn one or the other off to use them.
    • I'm getting same exception :(, am disappointed, since I was looking forward to using this plugin, best part is that I have VS 2012 Pro installed and yet it tells me, It cannot find a product to install to.
      
      2014-03-03 07:37:22 AM - 	Supported Products : 
      2014-03-03 07:37:22 AM - 		Microsoft.VisualStudio.Pro
      2014-03-03 07:37:22 AM - 			Version : [12.0]
      2014-03-03 07:37:22 AM - 
      2014-03-03 07:37:22 AM - 	References      : 
      2014-03-03 07:37:22 AM - 		-------------------------------------------------------
      2014-03-03 07:37:22 AM - 		Identifier   : Microsoft.VisualStudio.MPF.12.0
      2014-03-03 07:37:22 AM - 		Name         : Visual Studio MPF 12.0
      2014-03-03 07:37:22 AM - 		Version      : [12.0]
      2014-03-03 07:37:22 AM - 		MoreInfoURL  : 
      2014-03-03 07:37:22 AM - 		Nested       : No
      2014-03-03 07:37:22 AM - 
      2014-03-03 07:37:22 AM - 
      2014-03-03 07:37:22 AM - Searching for applicable products...
      2014-03-03 07:37:22 AM - Found installed product - Microsoft Visual Studio Professional 2012
      2014-03-03 07:37:22 AM - Found installed product - Microsoft Visual Studio 2012 Shell (Integrated)
      2014-03-03 07:37:22 AM - Found installed product - Microsoft Visual Studio Express 2012 for Web
      2014-03-03 07:37:22 AM - Found installed product - Microsoft Visual Studio Express 2013 for Web
      2014-03-03 07:37:22 AM - Found installed product - Global Location
      2014-03-03 07:37:22 AM - Found installed product - ssms
      2014-03-03 07:37:22 AM - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
         at VSIXInstaller.App.InitializeInstall()
         at System.Threading.Tasks.Task.InnerInvoke()
         at System.Threading.Tasks.Task.Execute()
  • ... something that I'd really love to have
    1 Posts | Last post February 28, 2014
    • google code search was one of the most valuable things for programmer. If only you could make similar service and tie it into VS... that would be awesome. To get this kind of stuff I'd agree do block google from my pc and always use BING for web search!
  • Visual studio express 2013
    1 Posts | Last post February 25, 2014
    • It is not working. It's failing :(
  • How can I change the shortcut key?
    2 Posts | Last post February 21, 2014
    • The default shortcut key of Alt+A interferes with the Find/Replace functionality in VS. I frequently highlight a section of code, type in "Find" and "Replace" parameters and press Alt+A to Replace All. However, now instead of replacing all, it brings up the Bing Code Search dialog, which is definitely not what I want.
      
      I couldn't find any options to change this shortcut key. Can I change Alt+A to something else? If not, I'll need to remove this package.
    • Open up options in Visual Studio, and navigate to Environment > Keyboard. From there, search for Tools.LaunchSnippetSearch, and you can re-assign the shortcut.
1 - 10 of 21 Items