Git Toggle
Quickly enable or disable Git integration for the current VS Code workspace.
Features
- Toggle Git integration with one click.
- Dedicated Activity Bar interface.
- Status Bar indicator showing the current Git state.
- Automatically reflects changes to
git.enabled.
- Workspace-specific configuration.
- Restores the inherited Git setting when Git is enabled again.
How It Works
Git Toggle controls the built-in VS Code git.enabled setting for the current workspace.
When Git is disabled, the extension sets:
git.enabled to false in the workspace settings.
When Git is enabled again, the workspace override is removed so VS Code can use the inherited Git setting.
Usage
- Open a VS Code workspace.
- Click the Git Toggle icon in the Activity Bar.
- Use the toggle button to enable or disable Git.
You can also use the Status Bar indicator or the Toggle Git command from the Command Palette.
Requirements
Visual Studio Code 1.110.0 or later.
Extension Settings
This extension does not add additional settings.
It controls the built-in:
git.enabled
workspace setting.
License
MIT
| |