Pammit is a lightweight VS Code extension that supercharges your Git commit workflow by letting you instantly insert staged file and folder paths into your commit messages—no more switching back to Explorer or typing long relative paths by hand.
- Open Visual Studio Code.
- Go to the Extensions view (
Ctrl+Shift+X). - Search for
Pammit. - Click Install.
- Inline & Editor Support: Trigger path suggestions directly in the SCM commit box or in the full editor.
- Smart Staged-Only Completion: Only proposes files and folders you’ve staged (
git add). - Relative Paths: Inserts paths relative to your workspace root for consistency.
- Zero Configuration: Install and go—Pammit works out of the box.
- Multi-Repo Friendly: Always matches the repository selected in the SCM view, with a status bar selector for manual override.
- Configurable Path Display: Use the
pammit.showFullPathsetting to toggle between full relative paths and just top-level names.
- Stage your changes with
git add. - Focus your commit-message box (inline or editor).
- Trigger suggestions by typing
.or/, or pressingCtrl+Space(⌃Spaceon macOS). - Select the entry you want and hit Enter.
- Switch repositories using the status bar selector if needed in multi-repo workspaces.
| Setting | Description | Default |
|---|---|---|
pammit.enabled |
Enable/disable Pammit path completion. | true |
pammit.showFullPath |
Show full relative paths (e.g. src/components/Button.tsx) instead of top-level names (Button.tsx). |
false |
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
Please read the CONTRIBUTING.md file for details on our code of conduct and the process for submitting pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
