vs code compare files code example
Example 1: vim compare 2 files
#open second file in vim with ":vsp mysecondfile.txt" then
:windo diffthis
Example 2: how to compare the changes between two files in vs code
// Comparing two files in vs code
Open the two files
Right click on one file & select "Select for Compare"
And on the other file, select "Compare with Selected"