Home >Development Tools >VSCode >How to achieve code comparison in vscode

How to achieve code comparison in vscode

王林
王林Original
2020-01-10 11:25:5723579browse

How to achieve code comparison in vscode

Open VSCODE, click [File]--"[Add Folder to Workspace...] Browse and open the folder where the file you want to compare is located

How to achieve code comparison in vscode

After the import is successful, you can see on the left side of VSCODE that the file has been imported into the workspace

How to achieve code comparison in vscode

Press the CTRL key to select the two files to be compared. , and right-click and select [Compare Selected] to start comparing files

How to achieve code comparison in vscode

VSCODE will separate the two files left and right, and the differences will be highlighted in red. The red areas of the status column indicate differences. You can directly click on the red areas to quickly view

How to achieve code comparison in vscode

Recommended related articles and tutorials: vscode tutorial

The above is the detailed content of How to achieve code comparison in vscode. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn