'Visual Studio Code - Open all modified files

Is there a way to open all files which are modified e.g. all tracked files which are showing after I execute git status?

enter image description here



Solution 1:[1]

I had to execute this command from a shell:

code $(git diff --no-commit-id --name-only -r HEAD)

However, this opens a new instance of VSC. Use -r if you like to open it on an already open instance:

code $(git diff --no-commit-id --name-only -r HEAD) -r

-r --reuse-window Force to open a file or folder in an already opened window.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Black