Viewing SourceControl files in external applications

Hi!

I have a question related to opening files from Source Control. Currently Source Control window supports only internal viewer and opening in external application is only possible from disk.
To illustrate this inconveniency add PDF file to the source control and double click on the stored file. Although VisualStudio provides you with the binary viewer it is not the best reader for PDF content.

Does anybody know how to change this behavior? Maybe changing of file association might help? Finally is it possible to add custom Verbs to context menu in Source Control window?

[1110 byte] By [IhorS.] at [2007-12-23]
# 1
One option is to use command line as suggested in http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=174304&SiteID=1 . http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=611608&SiteID=1 also discusses it and there doesn't seem to be a way to prevent VS from opening files when opening from source control.
NarenDatha-MSFT at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - General...
# 2

Another option: Highlight the item you want to open in Source Control Explorer. Then, go to the "Open With..." option in the "View" menu. This should let you open the file with several default applications, or add an application of your own. For example, I was just able to open a CSharp file (*.cs) with Microsoft Word by these means.

True, it's not necessarily the friendliest interface, but it should get the PDFs opened in a readable way.

Cheers,
Adam

Edit: I should note that you can also then set the program you add as the default for that extension type so that it will be used for all PDF files. I haven't tested this extensively, but it did seem to work for two CSharp files when I set the default on one of them.

AdamSingerMSFT at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - General...
# 3

FYI, "Open with" only works when viewing files from the solution window - when I select a file from the source control window, the "open with" option in the view menu is disabled.

For your solution to work, I first had to add a file of the wanted type to a solution, use the "open with" option, and then opening the file from the source control window worked.

Thanx,

Ido.

IdoFlatow at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - General...

Visual Studio Team System

Site Classified