Search code examples
gitdiffvisual-studio-code

How can I get a unified git diff in Visual Studio Code?


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?


Solution

  • The official view is a side by side one

    enter image description here

    But the VSCode Tips page mentions

    Inline view

    Toggle inline view by clicking more button in the top right.

    https://github.com/Microsoft/vscode-tips-and-tricks/raw/master/media/more_button.png ("Inline View")

    enter image description here