Reputation: 137594
When I press F1 in Visual Studio, it opens the MSDN website in Internet Explorer. I would like it to open in Google Chrome (as links do from other apps). How can I achieve that?
Google Chrome is my default browser in Windows.
Upvotes: 5
Views: 4566
Reputation: 2989
It seems neither Windows nor Visual Studio currently provides any facility to change what browser Visual Studio will open with for the F1 documentation feature.
The best solution I've found so far is by using the open source Browser Tamer tool.
After it detects your system's browser, you can create a rule for whichever browser you prefer, targetting the devenv.exe
Process.
Upvotes: 0
Reputation: 17
Try the script below for that.
<script type="text/javascript">
document.onkeydown = function () {
if (event.keyCode == 112) {
event.returnValue = false;
event.keyCode = 0;
return false;
}
}
$(function () {
$(document).keyup(function (e) {
var key = (e.keyCode ? e.keyCode : e.charCode);
switch (key) {
case 112:
navigateUrl($('a[id$=lnk1]'));
break;
default: ;
}
});
function navigateUrl(jObj) {
window.location.href = $(jObj).attr("href");
}
});
</script>
and then make the hyperlink button
<asp:HyperLink ID="lnk1" runat="server" NavigateUrl="../Home.aspx" style="display:none;">HyperLink</asp:HyperLink>
so that it can call hyperlink on click of F1
Upvotes: -1
Reputation: 452
This is take from: http://social.msdn.microsoft.com/Forums/vstudio/en-US/30afe492-7173-4c03-a671-02484e3fc560/cannot-open-visual-studio-2010-help-files-in-another-browsers
Upvotes: 7
Reputation: 11
Make Google Chrome as your default browser then press F1 in visual studio, It will open the Msdn website in Google Chrome.
Upvotes: 1