Click here to Skip to main content
15,892,005 members
Articles / Web Development / ASP.NET
Article

Opening unsupported document types in Visual Studio .NET using IE

Rate me:
Please Sign up or sign in to vote.
1.80/5 (5 votes)
2 Nov 20021 min read 42.2K   12   3
This article explains how to use Internet Explorer add-ins to view documents that cannot be usually viewed from inside Visual Studio.

Introduction

I often find myself using ALT+TAB to switch back and forth between Visual Studio .NET and windows containing documents that are related to the code I am designing. For example, when I am implementing a protocol, I find myself writing a few lines, switching to the document containing the protocol, switching back, writing a few lines, etc. Painful! I imagine I have wasted quite a bit of time this way.

Solution

Sometimes I have found myself wishing these documents were written as text files, so that I could open them in a panel in Studio. I have tried opening from File-->Open-->File and also using a URI (e.g. file:///C:\example.doc) in File-->Open-->File from Web Page. This doesn't work. PDF (Portable Document File) files open as text and are illegible, and others like MS Word files, open in a separate window.

I found a back door to open the file inside the context of IE.

  1. First you have to open a web page inside Studio. An easy way to do this is to select any code and hit 'F1'.
  2. While the IE panel is selected, ensure that the Web Toolbar is visible.
  3. In the URI textbox, enter the URI of the document and press ENTER.

Voila, the document opens inside VS.NET. I have found that using this in conjunction with Tab Groups and Full Screen mode is a great productivity boost for me. I felt obligated to share this little trick with all of you.

Conclusion

Someday, when I find time, I am planning on building an add-in to remove the backdoor and make this work better. I am quite busy these days and it might be a while. If anyone else would like to do so, I would definitely be interested in providing feedback.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralI give you a three Pin
Jörgen Sigvardsson3-Nov-02 12:10
Jörgen Sigvardsson3-Nov-02 12:10 
GeneralAnother Solution Pin
Christopher Lord2-Nov-02 16:01
Christopher Lord2-Nov-02 16:01 
GeneralRe: Another Solution Pin
Paul Watson3-Nov-02 1:06
sitebuilderPaul Watson3-Nov-02 1:06 

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

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.