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.
Install Git for Windows, Git Extensions (optional) or TortoiseGit (optional). Start Visual Studio. Go to top menu "Extensions | Manage Extensions", search the online gallery for Git Tools and install. Select top menu "Extensions | Git Tools | Git Changes" to bring out the Git Changes Window.
Viewing diffs# Our Git tooling supports viewing of diffs within VS Code. Tip: You can diff any two files by first right clicking on a file in the Explorer or OPEN EDITORS list and selecting Select for Compare and then right-click on the second file to compare with and select Compare with 'file_name_you_chose'.
Can you see "Add to Source Control" in lower right corner of Visual Studio window? If yes, click it and then click Git.
Just enter your commit message and then select Commit All. The equivalent command for this action is git commit -a . Visual Studio also makes it easy to commit and sync with one click by using the Commit All and Push and Commit All and Sync shortcuts.
It really was not easy to find in VS 2017:
I've found way to: press SHIFT + double-click. This provided me with alternative behaviour of opening files in VS 2019 Community Edition
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With