Click here to Skip to main content
Click here to Skip to main content

Improve Productivity using Visual Studio 2012 Default Browser Switcher

By , 28 Jun 2012
 

If you are a web developer and use Visual Studio to design and develop web applications, this post will help you to improve your productivity. Last year we discussed how to improve your productivity using the “Default Browser Switcher Extension” in Visual Studio 2010.

 

Now here comes another post which will show you how to use the in-built “Browser Switcher” extension available in Visual Studio 2012. I hope that, once you start working in Visual Studio 2012, this will definitely help you to increase your productivity.

 

What is Browser Switcher Extension?

Let us discuss this in a different way. You as a web developer might faced some issues while building and testing your web application. Your web application should be tested in various browsers for various layout issues before you freeze working on that part and that stuff is very pathetic. Either you have to open various browsers and paste the URL to check for layout issues or you have to open individual browsers to set them as default browser before running the app in debug mode. The first scenario is pretty easy if you are not running the app attached with the Visual Studio debugger.

 

Browser War

 

Now come to the browser switcher extension. This helps you to set the default browser within the Visual Studio IDE itself to run your application in that browser window without effecting the actual browser settings.

 

Last year I posted “Default Browser Switcher Extension for Visual Studio 2010 - Improve Productivity” which helped many of you to improve your productivity stuffs while building and testing your apps in different browser. If you are working in Visual Studio 2010, read that post. Continue reading to know about the browser switcher plugin in Visual Studio 2012.

 

How to use Browser Switcher in Visual Studio 2012?

Unlike Visual Studio 2010, you don’t have to install the Default Browser Switcher extension in Visual Studio 2012. It comes with the browser switching functionality in-built with the new IDE. You can directly access it from the debugger tool. Check out the following screenshot to know where you can get it:

 

Default Browser Chooser Option in Visual Studio 2012

 

By default, the default browser is “Internet Explorer”. If you want to run your web application in other browser installed in your PC, just click the small arrow head to open the below menu, which lists the installed browsers integrated to the IDE:

 

Default Browser Chooser Menu in Visual Studio 2012

 

If you don’t see the installed browser listed in the browser chooser menu, you can add it there by clicking the “Browse With…” menu item as shown above.

 

Once you click the “Browse With…” menu item, the following dialog will popup in the screen, where you will be able to add, remove installed browser and also set a browser as the default one:

 

Default Browser Chooser Window

 

Now once you add the new browser in the Visual Studio 2012 IDE, you will be able to see it in the browser chooser menu and you will be able to debug your web application with that browser directly from the Visual Studio IDE.

I hope that this blog post will be helpful for you to build and test your web application in various browsers to check out the layouts and functionality. Stay tuned to my blog to get article updates in coming days. Also connect with me on Twitter, Facebook to get regular updates. Subscribe to my blog’s RSS Feed and Email Newsletter for immediate update.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

_ Kunal Chowdhury _
Software Developer
India India
Member
Kunal Chowdhury is a Microsoft MVP (Most Valuable Professional) in Silverlight Technology, a Codeproject MVP & Mentor, DZone MVB (Most Valuable Blogger), Speaker in various Microsoft events, Author, passionate Blogger and a Software Engineer by profession.
 
He is currently working as a Software Engineer II in an MNC located at Pune, India. He has a very good skill over XAML, C#, Silverlight and WPF. He has a good working experience in Windows 7 application (including Multi-touch) development too.
 
He posts his findings in his technical blog. He also writes for SilverlightShow and Codeproject portal. Many of his articles were highlighted as "Article of the Day" in Microsoft sites.
 
He also has another website called Silverlight-Zone.com where he posts article links on Silverlight, Windows Phone 7 and XNA accumulated from various web sites to help the community grow on specified technologies.
 
You can reach him in his Blog : http://www.kunal-chowdhury.com
He is also available in Twitter : http://twitter.com/kunal2383

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
QuestionCan't add browsersmemberrfresh5 Sep '12 - 11:58 
The icon to select the drop down list to add or select more browsers is grayed out and very small...about 1/2 inch square.
 
I'm using vs 2012 Ultimate Trial. Is this why I don't have access to this feature?
AnswerRe: Can't add browsersmvp_ Kunal Chowdhury _5 Sep '12 - 17:05 
Ahh sorry!!! But this should be enable by default in VS 2012 IDE. Try to upgrade to the final release build which you can get from: http://bit.ly/MzDWaP[^]
Regards - Kunal Chowdhury
Microsoft MVP (Silverlight) | Codeproject MVP & Mentor | Telerik MVP & Insider

 
Follow me on: My Technical Blog | Silverlight-Zone | Twitter | Facebook | Google+

GeneralRe: Can't add browsersmemberrfresh5 Sep '12 - 17:24 
That looks like some kind of a virus infected link? That's not a Microsoft website!!!
AnswerRe: Can't add browsersmvp_ Kunal Chowdhury _5 Sep '12 - 17:35 
There's no virus here. It's my Technology blog. You can find all the separate link downloadables from MSDN there.
Regards - Kunal Chowdhury
Microsoft MVP (Silverlight) | Codeproject MVP & Mentor | Telerik MVP & Insider

 
Follow me on: My Technical Blog | Silverlight-Zone | Twitter | Facebook | Google+

GeneralRe: Can't add browsersmemberrfresh5 Sep '12 - 17:41 
Ok, I will give it a try...thanks...
GeneralRe: Can't add browsersmemberrfresh6 Sep '12 - 8:52 
So here is what I've discovered about this problem in VS 2012. The Choose Browser drop down list only displays when you are using a .aspx file type. I'm writing web test scripts and they use a .webtest file type. But the ability to choose different browsers to run my automation scripts with a .webtest file apparently isn't there. That seems strange to me since I'm writing web testing scripts and want to run them against different browsers. As far as I can tell, I can only run my .webtest scripts on IE.
AnswerRe: Can't add browsersmvp_ Kunal Chowdhury _6 Sep '12 - 8:55 
Ahh! I was not aware that you were running webtest projects. Sorry, this will only work for HTML and ASPX pages. This gives the designers and developers the best way to test their web pages in various browsers instead of changing the default browser every time.
Regards - Kunal Chowdhury
Microsoft MVP (Silverlight) | Codeproject MVP & Mentor | Telerik MVP & Insider

 
Follow me on: My Technical Blog | Silverlight-Zone | Twitter | Facebook | Google+

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web03 | 2.6.130523.1 | Last Updated 28 Jun 2012
Article Copyright 2012 by _ Kunal Chowdhury _
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid