Skip to content

VSCode extension to switch between repositories with ease

License

Notifications You must be signed in to change notification settings

mohitsinghs/vscode-repo

Repository files navigation

Repositories

Switch between repositories with ease
Fastest way to access your local repositories within VSCode

Release LICENSE


Features

  • Switch Repositories: Easily switch between repositories.
  • Auto Repository Detection: Automatically detect Git repositories.
  • View Options: Choose between tree or list view.
  • Status Bar Integration: See the current repository in the status bar.
  • Gitignore Friendly: Respects your .gitignore settings.

Installation

You can download the .vsix file for your platform from the Releases page and install it manually.

Manual Installation

  1. Download the latest .vsix file from Releases.
  2. Open VS Code and go to Extensions (Ctrl+Shift+X).
  3. Click on the ... menu (top-right corner) and select Install from VSIX....
  4. Select the downloaded .vsix file and install.

Warning

This extension is not available on the Visual Studio Marketplace. @microsoft took inexplicable action against my account, and after repeatedly hitting a non-responsive wall, I chose to delete it rather than waste more time fighting bureaucracy.

Demo

vscode-repo

Commands

  • Repositories: Edit configuration - Opens configuration for the repo and allows controlling root paths and scan depth.
  • Repositories: List Repos - Opens a quick pick list of repositories to switch.

Settings

Setting Description Default Value
repositories.treeAsDefault Use tree view as the default. false
repositories.sortByName Sort tree view by repository names. false
repositories.showInStatusBar Show the current project in the status bar. true
repositories.preferBundled Prefer bundled binary; fallback to PATH binary. true

Platform Support

The extension is available on all major platforms, including Windows, macOS, and Linux. However, while it's generally compatible with these platforms, please note that testing is more extensive on some platforms than others. If you encounter any issues on your specific platform, feel free to raise an issue with relevant details.

Warning

If you are using Windows Subsystem for Linux (WSL), please be aware that full support might be limited. In WSL, the repo cli needs to be installed, and it may not work correctly if the PATH is not inherited. You can set repositories.preferBundled to false to always use the binary from the PATH instead of bundled one. For more information, refer to #2 and #4.

Inspirations