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

Opening unsupported document types in Visual Studio .NET using IE

By , 2 Nov 2002
 

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

About the Author

Paul Reeder
Software Developer (Senior)
United States United States
Member
No Biography provided

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   
GeneralI give you a threememberJörgen Sigvardsson3 Nov '02 - 12:10 
because I commonly find myself in the same situation.
 
I would have given you a five if you'd written a VS.NET add-in which would allow me to dock a completely different IE into the mainframe. Wink | ;)
 
--
Colin Leitner wrote:
Viel Spaß noch mit der STL
 
Ganz Genau!

GeneralAnother SolutionmemberChristopher Lord2 Nov '02 - 16:01 
My solution to this problem was to purchase a second monitor Wink | ;)
GeneralRe: Another SolutionsitebuilderPaul Watson3 Nov '02 - 1:06 
Christopher Lord wrote:
My solution to this problem was to purchase a second monitor
 
Oh to be you
 
Roll eyes | :rolleyes:
 
Paul Watson
Bluegrass
Cape Town, South Africa

Ray Cassick wrote:
Well I am not female, not gay and I am not Paul Watson

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

Permalink | Advertise | Privacy | Mobile
Web02 | 2.6.130523.1 | Last Updated 3 Nov 2002
Article Copyright 2002 by Paul Reeder
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid