Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not getting GitHub merge conflicts Top-bar in Visual Studio Code

I am having trouble getting this GitHub merge conflict Top-bar to resolve the conflicts in Visual Studio Code.

I have tried adding this command "editor.codeLens": true but no effect.

This is what I am getting after pulling the changes enter image description here

And this is what I want after pulling. enter image description here

I am using VS Code 1.70.1

like image 333
bharat8 Avatar asked Mar 15 '26 11:03

bharat8


1 Answers

The reason is that Visual Studio Code has recently introduced the 3 way merge editor and has made it the default tool for resolving the merge conflicts.

If you don't feel comfortable using it, you can disable it by going to the following path in the Visual Studio Code settings and removing the checkmark:

path: settings > extensions > git > Merge Editor

enter image description here

Or by directly setting the following in the Visual Studio Code's settings.json:

"git.mergeEditor": false

You DON'T need to set editor.codeLens to true in the settings.

like image 132
Abbas Hosseini Avatar answered Mar 17 '26 03:03

Abbas Hosseini



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!