

click File in the main menu bar, select the New sub-menu and then select Code Comparison.To start comparing two files in the Code Compare Visual Studio add-in, you can use any of the following methods: Layout - This menu allows you to customize the display of comparison panes.

Changes - This menu allows you to navigate between changes and add them to the required document taking part in the comparison.Comparison - This menu contains commands for comparison customization.

Learn how to compare and merge source code in Visual Studio 2019.Ĭompare Files and Folders in Visual StudioĬode Compare adds dynamic toolbars and menus to Visual Studio to ensure that you can easilyĬompare folders and text files directly from the IDE. The following Visual Studio versions are supported:Ģ015, 2017, 2019 (except for the Express editions). You can enhance your Microsoft Visual Studio experience with robust functionality which allows you to quickly and efficiently compare,ĭiff and merge objects. VSCode diffs are a great thing to add to your developer toolbox.By using the Code Compare tool as an add-in, It also helps to remind yourself of the changes you've made from the master version of a file on git once in a while. I hope this helped you! Diffing in VS Code is very useful for quickly seeing changes between two files. Note: you can also edit files from within the diff panels! VS Code is awesome. If you would like to compare your local file changes with the latest git version of a file, click the git icon in the activity bar, then select the file that you would like to compare. Paste this command into the command line with your file names.Įxecuting this command should bring up the diff panel, just like it did from the explorer window. This is convenient if you want to build up muscle memory of typing out the commands into the terminal.

Note: you can also CTRL-select both files, right click on one, and select "Compare Selected" to achieve the same thing: You should see the diff panel appear once you've completed these steps: Right click on the second file and "Compare with Selected"ģ. Right click the first file and "Select for Compare"Ģ. This is the quickest, easiest way to bring up the diff panels. There's two primary types of diffs you can do with VS Code.
