Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Auto GitkeepNew to Visual Studio Code? Get it now.
Auto Gitkeep

Auto Gitkeep

Roger Chi

|
2,250 installs
| (3) | Free
Automatically add .gitkeep file to empty directories.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Auto Gitkeep

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

  1. Insert .gitkeep file automatically as soon as a directory becomes empty.
  2. Remove .gitkeep file automatically whenever a directory is populated with real files/directories.
  3. Enabled automatically for git repository workspace (with a .git folder).
  4. Can detect .gitignore file changes and ignore directories listed in it.
  5. A simple command is provided to enable the extension for non-git-repository workspace.

features

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.

Extension Settings

Currently none.

Known Issues

Currently none.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft