Click to See Complete Forum and Search --> : VS.net - SourceSafe "compare" on code behind


tom hartland
April 27th, 2004, 05:49 AM
This is more of a Visual Studio.net question, but as it's involves ASP.NET web forms it seems best to put it in this forum.

VS.net's integration with SourceSafe works brilliantly, and I'm very impressed - apart from...

I cannot work out how to do a "Compare Versions" command on the code behind "c#" file of a web form, without pressing SHIFT while clicking on the toolbar option. (I'm a keyboard junkie - prefer to have shortcut keys than the mouse.)

I've assigned a shortcut key to the "File.CompareVersions" command, but it only shows the differences of the xxx.aspx file, not the xxx.aspx.cs file which has the focus.

Another thought was to see if I could get the webform item in the Solution explorer to expand so I could select the code behind file - I can't find any option or documentation to say if this is possible.

Any ideas?
Cheers, Tom :-)

tom hartland
April 27th, 2004, 05:56 AM
Just found the following...

Tools menu / Options... / Source Control folder / SCC Provider / Advanced... / Integration tab / "Display dialog box for: Diff" option

At least this means that I can quickly add ".cs" to the end of the "Compare" and "To" filenames, but I'd still appreciate any other ides so that I can be even lazier...!?!

Cheers, Tom :-)

tom hartland
May 24th, 2004, 10:21 AM
I'm embarrassed to say that I've found my solution, only a month after I first tried looking - and more embarrassingly, it was my colleague who just showed me...! :blush:

Under the Project menu of Visual Studio.net 2003, there is a "Show All Files" option - this will expand all of the web forms on the solution tree to include Code Behind and .resx files.
This means that when you have focus on these files, they are chosen for the File Differences.

I think this is classed as a "can't see the wood for the trees" scenario (also know as "arse and elbow") :)

TheCPUWizard
May 24th, 2004, 10:24 AM
To be old and wise, you first must be young and stupid...!

Of course one can also be old and stupid :D

I hate it when things like that happento me :blush: :cry:

tom hartland
May 24th, 2004, 10:29 AM
I hate it when things like that happento me
It wouldn't bother me that much - if only it didn't happen so often.
Hey ho...! :)

Remember: you learn something new every day... if you're not careful enough.