Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>Copilot Auto-CommitNew to Visual Studio Code? Get it now.
Copilot Auto-Commit

Copilot Auto-Commit

Jitendra_GRL

|
1 install
| (1) | Free
Auto-commit feature: commits project files when saved (enabled by default), and optionally commits log file when updated. Shows welcome message on first install.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Autocommit VS Code Extension

Overview

The Autocommit extension automates the process of committing changes to files whenever they are saved and reside inside a git repository. This feature is opt-in and can be enabled via the autocommit.enabled setting.

Features

  • Watches files for changes upon saving.
  • Automatically runs git add and git commit commands when changes are detected.
  • Provides commands to toggle auto-commit functionality and manually commit changes.

Installation

  1. Download the .vsix file (autocommit-1.0.0.vsix).
  2. Open Visual Studio Code.
  3. Navigate to the Extensions view (Ctrl+Shift+X).
  4. Click on the ... menu in the top-right corner and select Install from VSIX....
  5. Select the downloaded .vsix file to install the extension.

Configuration

  1. Open VS Code settings and configure:
    • autocommit.enabled: Set to true to enable auto-commits.

Commands

  • Autocommit: Toggle Auto-Commit: Toggles the autocommit.enabled setting and starts/stops the watcher.
  • Autocommit: Commit Changes Now: Immediately commits all saved changes (if inside a git repository).

Security & Notes

  • Commits are created in the repository where the files reside. Use with caution and consider adding sensitive files to .gitignore if you do not want them committed.
  • The extension executes shell git commands using Node's child_process.exec. Errors are displayed in the VS Code console.

Feedback

If you encounter issues or have suggestions for improvement, please reach out via the extension's repository or support channel

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