views:

187

answers:

4

Is there a way to get an MSDN search bar in Firefox which will autocomplete .Net class and member names (and preferably also Win32 API methods) and take me directly to the MSDN page?

Google toolbar with Shift+Enter (I'm feeling lucky) will usually go directly to the msdn page for a .Net class, but it doesn't have targeted autocomplete. Also, since I'm too lazy to type site:msdn.microsoft.com, it doesn't always take me to MSDN. (eg, Graphics)

+5  A: 

There are several msdn search providers available.

Jeff Paquette
+1  A: 

This search plugin (from the list flyfishr64 linked to) works quite well (suggestions and everything).

Shog9
It goes to a search results page instead of directly to the first result.
SLaks
I ended up editing this to go to Google's I'm Feeling Lucky.
SLaks
+2  A: 

You could create a bookmark with a wildcard %s and the msdn keyword by using the following url for the bookmarked page:

http://social.msdn.microsoft.com/search/en-us/?query=%s

Now in the address bar, when I type "msdn StringBuilder" it brings me to this result page: http://social.msdn.microsoft.com/search/en-us/?query=StringBuilder

I did the same with the stackoverflow keyword and the http://stackoverflow.com/questions/tagged/%s url.

EDIT: as @AgentConundrum pointed out, using the http://www.google.com/search?hl=en&safe=off&q=%s%20site:msdn.microsoft.com url will restrict Google search to the msdn.microsoft.com site.

Gregory Pakosz
I just made this comment on the question, after having decided against posting it as it's own answer. I'm gonna cry when you're upvoted. :P
AgentConundrum
I thought of this. However, it wouldn't give autocomplete.
SLaks
No, since great minds talk alike, you'll upvote me happily :)
Gregory Pakosz
0xA3
+1  A: 

I ended up editing this search plugin from Shog9's answer and changing the search URL to Google's I'm Feeling Lucky.

Here's the XML:

<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/"&gt;
    <!-- Created on Thu, 07 Jan 2010 15:11:13 GMT -->
    <ShortName>MSDN</ShortName>
    <Description>Search MSDN documentation</Description>
    <Url type="text/html" method="get" template="http://www.google.com/search?hl=en&amp;amp;q={searchTerms}+site%3Amsdn.microsoft.com&amp;amp;btnI=I"/&gt;
    <Url type="application/x-suggestions+json" template="http://services.social.microsoft.com/search//Data/AutoCompleteTerms?t={searchTerms}&amp;amp;b=Msdn&amp;amp;l=en-US&amp;amp;m=10&amp;amp;rf=oss10"/&gt;
    <Image width="16" height="16">http://mycroft.mozdev.org/updateos.php/id0/msdn_schnore.ico&lt;/Image&gt;
    <Developer>Schabse Laks</Developer>
    <InputEncoding>UTF-8</InputEncoding>
    <moz:SearchForm>http://social.msdn.microsoft.com/Search/en-US/&lt;/moz:SearchForm&gt;
    <Url type="application/opensearchdescription+xml" rel="self" template="http://mycroft.mozdev.org/updateos.php/id0/msdn_schnore.xml"/&gt;
</OpenSearchDescription>
SLaks