GitHub User Switcher
A Visual Studio Code extension that allows you to easily switch between different GitHub accounts by automatically configuring the global Git user and email.
🚀 Features
- Quick user switching: Switch between multiple GitHub accounts with a single click
- Account management: Add, remove, and manage your GitHub accounts from VS Code
- Integrated sidebar: Quick access to all functions from the sidebar
- Data persistence: Your accounts are saved locally and persist between sessions
📋 Requirements
- Visual Studio Code 1.98.0 or higher
- Git installed on your system
- GitHub accounts configured
🛠️ Installation
- Open Visual Studio Code
- Go to the extensions tab (Ctrl+Shift+X)
- Search for "GitHub User Switcher"
- Click "Install"
🎯 How to use
The extension adds a new sidebar called "GitHub Switcher" with the following options:
- Add User: Add a new GitHub account
- Switch User: Switch to an existing account
- Remove User: Remove a saved account
- Show Current User: View the currently configured account
Available commands
You can also access the functions from the command palette (Ctrl+Shift+P):
GitHub User Switcher: Add GitHub User
GitHub User Switcher: Switch GitHub User
GitHub User Switcher: Remove GitHub User
GitHub User Switcher: watch GitHub User
📖 Usage guide
1. Add a new account
- Click "Add User" in the sidebar or run the corresponding command
- Enter your GitHub username
- Enter your GitHub email
- The account will be saved automatically
2. Switch accounts
- Click "Switch User" in the sidebar
- Select the desired account from the list
- The extension will automatically configure Git with that account's data
- You'll see a notification confirming the change
3. View current account
- Click "Show Current User" to see which account is currently configured
- A notification will be displayed with the current name and email
4. Remove an account
- Click "Remove User" in the sidebar
- Select the account you want to remove
- The account will be removed from the list
⚙️ Configuration
The extension automatically saves your accounts in a local JSON file. No additional configuration is required.
Calling out known issues can help limit users opening duplicate issues against your extension.
Release Notes
Users appreciate release notes as you update your extension.
1.0.1
🐛 Troubleshooting
Error configuring Git
- Make sure Git is installed and accessible from the command line
- Verify that you have permissions to run Git commands
Accounts are not saved
- Verify that VS Code has write permissions in the extension directory
- Restart VS Code if the problem persists
- Make sure the extension is activated
- Go to View > Command Palette and run "Developer: Reload Window"
📝 Release notes
v0.0.1
- Initial release
- Basic user switching functionality
- Integrated sidebar
- Account management (add/remove)
- Current user verification
🤝 Contributing
If you find any issues or have suggestions, please:
- Open an issue in the repository
- Describe the problem or suggestion
- Include steps to reproduce the problem (if applicable)
📄 License
This project is under the MIT License.
🙏 Acknowledgments
Thank you for using GitHub User Switcher. We hope it helps you manage your multiple GitHub accounts more efficiently.
Enjoy switching between your GitHub accounts easily and quickly! 🎉