opendiff
can be large, because XCode is required to run, depending on your platform, and it can take a good 35GB or more. But if you already have Microsoft Visual Studio Code, we can first add it to the command prompt by bringing out the command palette, type in shell
, and choose
Install 'code' command in PATH
and then in Bash or Zsh, it can be
code --diff file1.js file2.js
or just use -d
code -d <path1> <path2>
Perforce diff can be used as well, and it'd be smaller size than opendiff
Top comments (1)
Visual Studio
use the Developer Command Prompt, so the proper paths and environment variables are loaded