Auto Gitkeep is a VS Code extension that can automatically add .gitkeep file to empty directories, so that directory hieriarchy can be preserved for git commit.
Features
Insert .gitkeep file automatically as soon as a directory becomes empty.
Remove .gitkeep file automatically whenever a directory is populated with real files/directories.
Enabled automatically for git repository workspace (with a .git folder).
Can detect .gitignore file changes and ignore directories listed in it.
A simple command is provided to enable the extension for non-git-repository workspace.
Usage
For git repository workspace (with a .git folder), the extension is enabled automatically.
For other workspace, press F1 and run command Gitkeep Generate to initialize the extension.