10

I would like to know if there is a way to get the standard side by side diff view in magit. That is, instead of seeing the old code chunk and the new one one after the other, I'd like to see them on the same horizontal alignment.

  • 2
    Although "the standard" diff view is actually what Magit shows you, you can also invoke ediff by typing e, and you can configure ediff to display side-by-side views by default. – phils Nov 18 '16 at 10:29
  • @phils Your comment is an answer AFAICT. Hereby I encourage you to yank your comment as answer. – Marco Wahl Nov 19 '16 at 9:22
17

The Emacs package for doing this is named Ediff and Magit supports Ediff. To get started press e on the change for which you want to see the side-by-side comparison. You might also have to use E occasionally to tell Ediff/Magit explicitly what you want to compare.

Also see the Ediff manual and the node about Ediff in the Magit manual.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.