I have two folders in a VS Code project and I need to compare those two folders for new, deleted or modified files.
I have seen file compare feature and third party folder compare features, but is there any native VS Code feature for folder comparison I could use. If the answer is No, then which third party plugin is considered as the best though experience.
Thanks!
CodePudding user response:
No.
https://marketplace.visualstudio.com/items?itemName=moshfeu.compare-folders claims to compare folders, but I can't speak to its effectiveness.
Usually I would just use diff -r
or some type of git diff compare, as comparing a lot of files can sometimes not be a fun thing to do manually.
If both folders are git trees it becomes possible to compare them with git diff commands.
CodePudding user response:
One possible workaround is to commit one of those folders, copy and past (merge) the other over it and use VS code source control (Ctrl Shift G
). After comparison, you can use git reset --hard
to undo the changes. But this will only show folders which contains files.
You can also try the extension on the answer above or this one:
https://marketplace.visualstudio.com/items?itemName=L13RARY.l13-diff