VS Code has a nice built-in Git interface, but it defaults to side-by-side file comparison/diff. Is there a way to switch to unified colored mode?
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'.
You can run the git diff HEAD command to compare the both staged and unstaged changes with your last commit. You can also run the git diff <branch_name1> <branch_name2> command to compare the changes from the first branch with changes from the second branch. Order does matter when you're comparing branches.
The official view is a side by side one
But the VSCode Tips page mentions
Inline view
Toggle inline view by clicking more button in the top right.
("Toggle Side By Side View
")
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