I'm finding the built-in Visual Studio Document Explorer less relevant, especially as more of the SDKs I work with have the most up-to-date content on-line. Pressing F1 starts Document Explorer usually with something unhelpful and it's not usable any more for me.
Is there any way that on the press of a key combination in Visual Studio:
- the default browser opens to the URL of a search engine
- query used is the keyword under the current cursor position
- a filter is added such as
site:msdn.microsoft.com
I don't know anything about macros in VS but presumably that's what I need. Does anyone know how to go about setting this up? teh codez would be nice!
Here is another version (based on Alex's answer) that will also select the current word you are on. More like the typical F1 help.
Using the link Preet provided I came up with this which starts the default browser:
I've come up with this one. As it says, you will need to add a reference to 'System.Web' for HttpUtility.UrlEncode. Also, there's a few 'options' in the code commented out. Parts taken from http://www.codinghorror.com/blog/2005/10/google-search-vsnet-macro.html , but much improved (IMHO).