An open API service indexing awesome lists of open source software.

https://github.com/mohitsinghs/vscode-repo

VSCode extension to switch between repositories with ease
https://github.com/mohitsinghs/vscode-repo

git project-management repository-management visual-studio-code vscode vscode-extension

Last synced: about 1 month ago
JSON representation

VSCode extension to switch between repositories with ease

Awesome Lists containing this project

README

        

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](https://github.com/mohitsinghs/vscode-repo/releases) page and install it manually.

### Manual Installation

1. Download the latest `.vsix` file from [Releases](https://github.com/mohitsinghs/vscode-repo/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](https://github.com/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](https://user-images.githubusercontent.com/4941333/210471039-01677d25-3e61-4e25-84fc-9eae24357bcb.gif)

## 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](https://github.com/mohitsinghs/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 mohitsinghs/vscode-repo#2 and mohitsinghs/vscode-repo#4.

## Inspirations

- [Project Manager](https://github.com/alefragnani/vscode-project-manager)
- [Rust Analyzer](https://github.com/rust-lang/rust-analyzer)