View In Browser/Browse with key shortcut - alternative for Ctrl+F5
At work I use Visual Studio 2008 for web development. I do not always like the Ctrl+F5 option, since it opens up my default browser (in my case, Google Chrome). Same is the case with, “View in Browser” from the solution explorer. But then sometimes I want to start the page in Firefox or IE for cross browser unit testing. This is where I like the “Browse with...” option in the solution explorer. If you are like me who uses this option quite frequently and want to save a few mouse clicks, go to Tools->Options… Environment->Keyboard (make sure “Show all settings” is checked) and type in “File.BrowseWith” in the show commands containing filter and assign a nice keyboard shortcut. You may also notice that File.ViewInBrowser already has a keyboard shortcut of Ctrl+Shift+W - I saw this to be redundant. So I removed the shortcut for this and assigned this to File.BrowseWith. Now everytime I make changes to a .aspx file, I hit Ctrl+Shift+W to choose to browse in the browser I want to test!










Recent Comments