Search code examples
gitvisual-studio

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


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.


Solution

  • 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