Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>Git Profile Hub (Account Switcher)New to Visual Studio Code? Get it now.
Git Profile Hub (Account Switcher)

Git Profile Hub (Account Switcher)

Kaditya67

| (0) | Free
Visual sidebar panel & status bar to view, switch, and manage Git identities locally per repository.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Git Account Switcher (VS Code Extension)

A Visual Studio Code extension to easily view, manage, and switch Git user identities (user.name and user.email) locally per repository, with support for profile saving, editing, deletion, and remote pattern matching.

Features

  • Identity & Status Check (gitAccountSwitcher.status):
    • Validates if the active workspace is a Git repository.
    • Checks local user.name and user.email overrides, with automatic fallback to global Git configuration.
    • Displays identity information, active scope, and quick switch actions.
  • Multi-Profile Management & Switching (gitAccountSwitcher.switch):
    • Interactive QuickPick menu with saved accounts (Work, Personal, Open-Source, etc.).
    • Instantly applies settings locally (git config --local user.name and user.email), isolating changes to the current repository.
    • Secure persistent storage using context.globalState.
    • Add, edit, or delete stored profiles on the fly.
  • Status Bar Integration:
    • Real-time indicator showing the active Git user and scope in VS Code's status bar.
  • Automatic Account Detection:
    • Automatically matches remote repository URLs (origin) against pattern definitions (e.g. github.com/my-company) to prompt or apply the correct identity.

Extension Settings

This extension contributes the following settings:

  • gitAccountSwitcher.autoDetectOnOpen: Automatically check remote repository URL on workspace open to suggest or apply matching Git profiles (default: true).
  • gitAccountSwitcher.showStatusBar: Show the active Git user profile in the VS Code status bar (default: true).

Development

# Install dependencies
npm install

# Compile TypeScript
npm run compile

# Run in watch mode
npm run watch
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft