To compare files in Visual Studio Code, right-click on the first file then click Select for Compare
.
![](https://www.radishlogic.com/wp-content/uploads/2019/12/Visual-Studio-Code-Compare-first-file.png)
Then right-click the second file and click on Compare with Selected
.
![](https://www.radishlogic.com/wp-content/uploads/2019/12/Visual-Studio-Code-Compare-second-file.png)
This will open a new tab highlighting the comparison of the two files.
![](https://www.radishlogic.com/wp-content/uploads/2019/12/Visual-Studio-Code-File-Comparison-1024x391.png)
Let me know if this helps in the comments below.