MartinThé
MartinThé

Reputation: 736

Switch from Compare Files in Visual Studio to normal file view

When I compare a file with its unmodified version in Visual Studio from Team Viewer, the Compare Files view is opened. The head version of the file is displayed on the left, the working copy on the right.

Is there a way (preferably a keyboard shortcut) to quickly switch from the Diff viewer to the normal file view of the working copy?

Upvotes: 2

Views: 956

Answers (3)

fat
fat

Reputation: 7103

This combination works for me:

  1. Ctrl+Alt+L to open Solution Explorer on respective file
  2. Enter to open the file

Upvotes: 0

eljoe
eljoe

Reputation: 168

The fastest way I have found is using the following shortcut:
CTRL+', S to Sync Solution Explorer with active Document
And then simply Enter to open it.

Upvotes: 5

samHumeniuk
samHumeniuk

Reputation: 119

The best I have found is to use CTRL + O, [file_name], Enter.

In my 2017 version of Visual Studio will bring up the "Open File" pop up window in the directory of the file you are currently looking at. You'll then need to retype part of the file name in order for Windows to suggest files for you to open.

I don't think it's quite what you wanted but at least you can do it without having to resort to using your mouse!

Note that you don't necessarily need to type the whole of the filename in as you can use the down key to toggle through suggestions offered.

Upvotes: 0

Related Questions