Reputation: 35404
I open the History in the Source Control, then open a changeset, then select a file in the file list and double click to open it. TFS open the file by Notepad, I wanna open the file by Visual Studio or by any other text editor (to have syntax highlight). How can I do this?
PS. In my machine, when I open a .config file like app.config, TFS ask for a program to open it! I want TFS ask for the .cs file also! There must be somewhere to set this I guess.
Upvotes: 3
Views: 5581
Reputation: 31
All files saved in TFS are saved in a path that starts with the following address: http ://YourServerNametfs01:8080/tfs/.../.../...&FileName=YourFileName.YourExt
This means that all files are opened using the default program defined for HTTP protocol, regardless of the extension for your file. You can probably change the default program for your HTTP protocol (if you have permissions, and usually you wouldn't) but this would also affect opening any regular web page or URL, which is probably not recommended.
I still haven't found a workaround this issue too.
Upvotes: 2
Reputation: 161
I was able to configure this by adding new value to the registry.
OS: Windows 7 Enterprise x64
Steps on how to do it.
Upvotes: 13
Reputation: 414
The only thing that works for me is when I set the default program for a file in Windows Explorer to open with the VS IDE:
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe
Might work similarly for 2010.
Upvotes: 1