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.
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
Download the .vsix file (autocommit-1.0.0.vsix).
Open Visual Studio Code.
Navigate to the Extensions view (Ctrl+Shift+X).
Click on the ... menu in the top-right corner and select Install from VSIX....
Select the downloaded .vsix file to install the extension.
Configuration
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