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.

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

by klptp | Mon 11:49 PM

Many crashes, only supports C# and VS13, often gets irrelevant results.

Recently moved to Flow extension that also works with Web languages like Javascript -
flowextension.com
It's fantastic.

by Igor Karkarov | July 09 2014

Seams like a usefull thing, but doesn't work with intellisense (VS 2013 update 2, Windows 8.1 64bit) :(

<entry>
<record>694</record>
<time>2014/07/09 07:35:57.772</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 Alex Misca | July 02 2014

throws exception the first time Intellisense pops up and doesn't work afterwards. seems an old issue that hasn't been resolved. to bad. would have been nice

Object reference not set to an instance of an object. at Microsoft.VisualStudio.Editor.InvokePeek.IntellisensePresenterProvider.GetUIElement(CompletionSet itemToRender, ICompletionSession context, UIElementType elementType)

by gunnerthemad | May 14 2014

Fantastic idea, does not work with my install of 2013.

No crashes, but just a bing icon and nothing happens when I click or type.

Might be resharper conflict like others have experienced, please fix! Will try again after next update...

by Nicola Farina (Aragorn Labs) | May 12 2014

Great idea, but peek definition crashes with this extension enabled!

by Ran QUAN(CN) | May 12 2014

great, but crashing when peek definition.

by Lucas Figueiredo | April 29 2014

This is a great extension but it just does not work. Was able to test it, but the next day when I restarted the machine and opened again VS2013 it kept crashing. Disabled the extension and now everything is fine... Hope you can fix it soon, this looks as a great shift in way programmers use VS, looking forward to see it working well.

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>

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


  • Support for additional sources
    1 Posts | Last post July 01, 2014
    • It would be great to expose some kind of API so that we could store code snippets locally and search those as well. For example, inside a corporation and allow us to take advantage of all the public code and internal code as well.
  • How can I change the shortcut key?
    3 Posts | Last post April 29, 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.
    • Alt-A gives a Exception in SnippetViewer in VS2013 - and Crashes VS2013: 
      WindowsBase.dll '' is not a valid value for property 'FontFamily'.
      
      ActivityLog.xml also has this
      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)
      
      Uninstalling till a new version is available.
  • Nothing shows up.
    1 Posts | Last post April 15, 2014
    • 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!
1 - 10 of 22 Items