Visual Studio Code has built-in function to compare the difference of two files on the UI.

I am using VS Code on Windows. Is there a convenient way to export the difference into a text or HTML file, like using the unix shell command diff or vimdiff ?
Not specifically using VS Code:
Export to HTML, if the Windows can run the vimdiff shell command:
vimdiff -c TOhtml -c "w vimdiff_export.html | qa!" file1 file2
Export to text using diff:
diff file1 file2 > diff_export.txt
Or use the Windows command line fc (file compare) command:
fc file1 file2 > fc_export.txt
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With