Reputation: 14372
When VS Code is used as a diff tool, e.g. with git difftool
, it shows changed lines in red and green. Is there a way to highlight the changed characters (in addition to or instead of the lines) so that they stand out more?
Upvotes: 3
Views: 1447
Reputation: 37827
VS Code git diff actually does have character highlighting. It's just very subtle, so it may not be noticeable.
You can modify the diff color settings to find one that allows for more contrast. Make sure the color specifies the alpha channel, otherwise it won't work.
settings.json
"workbench.colorCustomizations": {
"diffEditor.insertedTextBackground": "#00bb0044",
"diffEditor.removedTextBackground": "#ff000044",
},
For more info, see How to change diff color Visual Studio Code
Upvotes: 7