Configuring VS Code for Git Difference
I am full stack developer from UK, mainly focused on Drupal.
We can use Visual Code editor for view the differences in the file changes. Here is how we can do it.
First, we need to set the editor tool to vscode.
> git config --global diff.tool vscodeNext, tell git how to launch the vscode. We have to set code command to run as well for vscode. $LOCAL and $REMOTE are placeholders for old and new copies of file.
> git config --global difftool.vscode.cmd "code --wait --diff $LOCAL $REMOTE"To be sure, let's check the default global configuration file.
> git config --global -eNow we can run difftool command to see changes in working directory or staged area using following command.
> git difftool > git difftool --staged



