Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Diff syntax highlighting in Visual Studio Code?

Is there an extension or setting, which makes a file with a .diff extension, opened in VS Code, display added lines in green and deleted lines in red? Currently, when I open a diff file, it displays added and deleted lines in the same color. I'm using VS Code Version: 1.37.1.

P.S. I tried the diff extension, but it doesn't work for me.

P.P.S. I tried reloading VS Code with extensions disabled and the highlighting is still broken:

enter image description here

like image 610
Alexander Popov Avatar asked Jul 29 '26 00:07

Alexander Popov


1 Answers

I observed that .diff files are highlighted by default(without requiring any extensions), it's just that certain themes do not work well. Theme-Winter is coming

Theme-Dracula at night

like image 87
Loner Avatar answered Jul 30 '26 18:07

Loner



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!