Customization for Visual Studio 2008 that opens MSDN Help in a browser when hitting F1

穿精又带淫゛_ 提交于 2019-12-12 01:18:37

问题


The MSDN help isn't very helpful in that its startup time is long and that it quite often doesn't get you to the correct help file. I always end up opening MSDN in a browser instead. Is there some customization for Visual Studio 2008 that opens MSDN Help in a browser when hitting F1?


回答1:


Two suggestions:

1: Remove the default key-binding for F1, via Tools > Options > Environment > Keyboard > Help.F1Help

Then write a little macro (different ways to do this of course), to start your browser with a default URL e.g.

Sub OpenChromeWithURL()
Dim url As String = "http://msdn.microsoft.com"

'launch browser
System.Diagnostics.Process.Start(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "\Google\Chrome\Application\chrome.exe", url)
End Sub

To this macro you can now assign a keyboard shortcut as described before. Go to Tools > Options > Evnironment >Keyboard. Look for Macro.OpenChromeWithURL and assign a shortcut key to your Macro. An explanation on how to assign a shortcut key you can find here: How to map a Visual Studio macro to a keyboard shortcut?


2: Download the MSDN Library for Visual Studio 2008 SP1

来源:https://stackoverflow.com/questions/3930962/customization-for-visual-studio-2008-that-opens-msdn-help-in-a-browser-when-hitt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!