有没有办法在 Firefox 中获得一个 MSDN 搜索栏,它会自动完成 .Net 类和成员名称(最好还有 Win32 API 方法)并将我直接带到 MSDN 页面?
带有 Shift+Enter 的 Google 工具栏(我感觉很幸运)通常会直接转到 .Net 类的 msdn 页面,但它没有针对性的自动完成功能。另外,由于我懒得打字site:msdn.microsoft.com
,它并不总是带我去 MSDN。(例如,Graphics
)
有几个可用的msdn 搜索提供程序。
这个搜索插件(来自 flyfishr64 链接的列表)运行良好(建议和一切)。
您可以使用以下网址为书签页面创建带有通配符%s
和关键字的书签:msdn
http://social.msdn.microsoft.com/search/en-us/?query=%s
现在在地址栏中,当我输入“msdn StringBuilder”时,它会将我带到这个结果页面:http ://social.msdn.microsoft.com/search/en-us/?query=StringBuilder
我对stackoverflow
关键字和http://stackoverflow.com/questions/tagged/%s
网址做了同样的事情。
编辑:正如@AgentConundrum 指出的那样,使用http://www.google.com/search?hl=en&safe=off&q=%s%20site:msdn.microsoft.com
url 会将 Google 搜索限制在该msdn.microsoft.com
站点。
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/">
<!-- 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&q={searchTerms}+site%3Amsdn.microsoft.com&btnI=I"/>
<Url type="application/x-suggestions+json" template="http://services.social.microsoft.com/search//Data/AutoCompleteTerms?t={searchTerms}&b=Msdn&l=en-US&m=10&rf=oss10"/>
<Image width="16" height="16">http://mycroft.mozdev.org/updateos.php/id0/msdn_schnore.ico</Image>
<Developer>Schabse Laks</Developer>
<InputEncoding>UTF-8</InputEncoding>
<moz:SearchForm>http://social.msdn.microsoft.com/Search/en-US/</moz:SearchForm>
<Url type="application/opensearchdescription+xml" rel="self" template="http://mycroft.mozdev.org/updateos.php/id0/msdn_schnore.xml"/>
</OpenSearchDescription>