Visual studio how to open file and not diff window in team explorer changes git
Asked Answered
T

4

20

Before commit my file on git, I want edit my file, but when I click on the file in the changes window in team explorer, it open the diff of previous file and current file, but how to open juste the current file, for edit it. Because in large solution find file is not easy. Thanks.

Tiphanie answered 27/4, 2017 at 7:26 Comment(0)
L
29

It really was not easy to find in VS 2017:

  • Go to the Team explorer window
  • Changes tab
  • Click on '...' button near Changes accordion
  • select Open file as default action

Git open file as default

Laurynlausanne answered 20/9, 2017 at 8:31 Comment(1)
Still working in VS 2022 17.8. After applying this change, it is still possible to still open the diff with SHIFT + DoubleClick.Photoflood
L
19

I've found way to: press SHIFT + double-click. This provided me with alternative behaviour of opening files in VS 2019 Community Edition

Lamellibranch answered 25/4, 2019 at 9:31 Comment(1)
Oh wow thanks. One little anoying thing is that you first have to close the diff window and then SHIFT + double-click will work. I can't understand when there is no button or something like in WebStorm...Gynoecium
J
3

In VS2019 Enterprise I had 2 to do what s_tranquil said:

  1. Click on '...' to open file as a default option
  2. Plus what Van-ng said, but the opposite, Shift + double-click to open the diff window.
Jovitta answered 10/6, 2021 at 0:42 Comment(0)
M
0

I found that if you already have a regular (non Diff) version open, it sometimes won't let you open the file in "regular mode". Check which tabs you already have open[enter image description here]

VS tabs

Madera answered 30/7 at 6:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.