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.
Visual studio how to open file and not diff window in team explorer changes git
Asked Answered
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
Still working in VS 2022 17.8. After applying this change, it is still possible to still open the diff with SHIFT + DoubleClick. –
Photoflood
I've found way to: press SHIFT + double-click. This provided me with alternative behaviour of opening files in VS 2019 Community Edition
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
In VS2019 Enterprise I had 2 to do what s_tranquil said:
- Click on '...' to open file as a default option
- Plus what Van-ng said, but the opposite, Shift + double-click to open the diff window.
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]
© 2022 - 2024 — McMap. All rights reserved.