Comparing files in VSCode

1 min read  •  30 Mar 2023
Views:
code-compare-in-vscode

VSCode provides us a feature through which we can compare code between two files. Following are the steps to compare two file's code in VSCode-

  • Right click on the file against which you want to compare
  • Click on Select for compare
  • Now, right click on the second file which you want to compare
  • Click on Compare with selected

You will get the whole file comparison opened as a tab in VSCode.