Use VScode to compare the differences between two files

In the process of changing the code, sometimes we need to compare the difference between the before and after code, which can be easily realized with VScode

1. Open VScode, select the file to be compared, and right-click to select to compare:
insert image description here

2. Select the file to be compared again, and right-click to compare with the selected item;
insert image description here

3. Comparative effect
insert image description here

Guess you like

Origin blog.csdn.net/weixin_45884316/article/details/123033828
Recommended