Tuesday, August 31, 2010

Make it easy to change the default browser in Visual Studio

The title of this post was Scott’s wish submitted as a WoVS extension idea about a week ago.

Currently it is a bit of a pain (as in “too many clicks” and sometimes non-visible options) to change the browser used by VS when you’re developing and testing your website.

We took action and in a few days developed the “Default Browser Switcher” extension that offers:
A new toolbar (in order to make it visible you have to go View –> Toolbars –> Default Browser Switcher):

Default Browser Switcher toolbar

which you can use to easily change with a single click the default browser used by VS.

And we went a bit further and added a new “View in Browser” command which sits next to the built-in one:

Default Browser Switcher commands

If you just want to quickly try a web page with a given browser you can use this new command without having to mess at all with the default browser settings.

As a last bonus we enabled our “View in Browser” command for ASP.NET MVC projects, as the built-in command isn’t available for these projects.

The bits are free as in beer. You can download them from the Visual Studio Gallery or the Extension Manager within VS. They will expire on Oct. 28th at which time full public beta bits of WoVS will be available and you will need to download them again for compatibility reasons (of course, free as in beer, again).

We don’t have any dedicated forum or such for tracking extension bugs just yet, so please use the original suggestion use the VS Gallery Q&A section for now to submit any feedback.


If you want to gently push Microsoft to include such a feature in the next version of Visual Studio please vote here. We would love to see WoVS extensions being deprecated by the next version of VS!

26 comments:

Rafael Mejía said...

Sweet! That's what I needed, greetings from Costa Rica.

Scott said...

Yes!

Anonymous said...

Any chance to get it working on VS 2008 for those of us who haven't been able/allowed to upgrade yet?

Joemurai said...

very useful - thanks so much.

Kneuz++ said...

Nice extension! Very helpful! Thx

superdopey said...

Excellent extension! Are you planning a VS 2008 version as well ?

Senthil said...

Awesome!

Pablo Peralta said...

great tool!
by the way, i can't see the 'view in browser' command by right clicking an .aspx.
Any ideas?
thanks

World of VS said...

@superdopey & anonymous: we don't have a VS2008 compatible version in the works for now, sorry! That said, I'll raise this point in our next WoVS team meeting and see what can be done.

@Pablo Peralta: which project type (WebApp, MVC, Website, etc) does this .aspx belong to? I believe we're not supporting Website types right now. We have plans to add support for this soon.

GF said...

Another enchance can be stop vs debug when close browser like when choose IE

Anonymous said...

VS2008++

Anonymous said...

If you are still writing software with visual studio you are officially a dinosaur.

Anonymous said...

I'm a student and I use Visual Studio because I didn't know anything else exists. What should I be using?

Anonymous said...

Another enchance can be stop vs debug when close browser like when choose IE ++

Anonymous said...

and what now? Dec 28

Anonymous said...

Version .4 worked great, but expired. Installed version .5, but it no longer appears on my toolbar ... and if I right-click it's not in the list of available toolbars. What happened? How can I get my favorite extension back?

GF said...

With version -5 my toolbar no longer appears

danielkzu said...

Please get the newest update. We fixed that issue.

Thanks!

GF said...

Thanks, in the version 0.6 the bug is fixed

Anonymous said...

I had no idea I was installing a virus when I went to try your add-in. Now, whenever I start VS, I get this obnoxious 'beta bits has expired, please visit wovs.com', and of course, if you DO VISIT, you get absolutely zero info on how to resolve this issue.

Thanks for adding to the confusion and crap that is Visual Studio! If you are going to provide a plug-in, the least you could do is WARN people properly. I saw no warning and am now stuck w/this. Good thing you have no products to sell, because I sure wouldn't buy them.

Alan

danielkzu said...

Hi Alan,
the issue has been documented (http://blog.wovs.com/2010/10/how-to-update-currently-expired.html) and the fix is extremely easy.

We're sorry you missed that, and we hope you get to use the latest version which doesn't have this problem.

VS2010 has an xcopy approach to extensibility, so getting rid of an offending one is as easy as going to your %localappdata%\Microsoft\VisualStudio\10.0\Extensions\ folder and deleting the entire extension folder.

Anonymous said...

Thanks danielkzu for the extention location

Anonymous said...

Any chance you can add an option for IE in Private browsing mode? That way my session data won't persist between sessions.
Thanks!

ferrous said...

Ok So I installed this on Visual Studio 2010.

The machine is an AMD x64.

The project is MVC3 using Framework 4.

When I right click and say 'View in Browser' I get a popup saying:

Command "File:ViewInBrowser" is not available.

What did I do wrong. How Can I fix this?

Evan Davis said...

First time I installed this it worked straight away; this time, it can't even find IE!

ferrous said...

I'm anxious to see them support this more. We really need this.

Post a Comment