Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>Open Repository in Context MenuNew to Visual Studio Code? Get it now.
Open Repository in Context Menu

Open Repository in Context Menu

Jongyeon Yoon

|
2 installs
| (0) | Free
Right-click a folder in the Explorer to register it as a repository in the Source Control panel.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Open as Repository

Adds an Open as Repository entry to the Explorer context menu (right-click on any folder). The folder is registered in the Source Control panel via the built-in Git extension's git.openRepository command, without changing the current workspace.

Why

VSCode's Source Control view only auto-discovers Git repositories inside the opened workspace. When you want to monitor a Git repository that lives outside the workspace — a sibling clone, a build output tree, a vendored dependency — you currently have to open it in a new window or run a command from the palette. This extension surfaces the same action one right-click away.

Usage

  1. Right-click any folder in the Explorer.
  2. Choose Open as Repository.
  3. If the folder is a Git working tree, it appears in the Source Control panel.

Multi-select is supported: right-click after selecting multiple folders and each one is registered.

Requirements

  • VSCode 1.85 or newer.
  • The built-in Git extension (vscode.git) must be enabled. It is by default; this extension declares it as a dependency.

Commands

Command Title
openAsRepository.open Open as Repository

Known Limitations

  • The target folder must already be a Git repository. This extension does not run git init.
  • The Source Control panel scopes discovered repositories to the current window; closing and reopening the window may require re-registering.

Release Notes

0.0.1

  • Initial release.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft