How to Open the Merge Editor in VS Code

  1. Click on the gear icon in the bottom left to open Settings
  2. Search for “git.mergeEditor”
  3. Enable the setting by checking the box next to “Git: Merge Editor”

Open the Merge Editor

Once enabled, there are a few ways to open the merge editor when you have merge conflicts:

  • Click on the file with conflicts in the Source Control view (Ctrl+Shift+G)
  • If the file is already open, click on the “Open in Merge Editor” CodeLens action above the conflict markers
  • Use the command palette (Ctrl+Shift+P) and search for “Open in Merge Editor”

The merge editor shows the incoming changes on the left, your current changes on the right, and the result at the bottom. You can use the checkboxes and actions to resolve the conflicts and produce the final merged content.

The merge editor provides a nice graphical interface to view the changes side-by-side. It’s especially helpful when resolving tricky merge conflicts involving multiple conflicting lines spread throughout the file.

Let me know if you have any other questions!