Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Open git repository in browserNew to Visual Studio Code? Get it now.
Open git repository in browser

Open git repository in browser

gmolveau

|
72 installs
| (0) | Free
Open the current git repository in the browser
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSCode Open Repository Online

Open Repository Online is a Visual Studio Code extension that allows you to easily open the current file in your browser, directly from the online repository. If the current branch has an upstream repository configured, the extension will open the file in the browser using the upstream repository URL. If no upstream is configured, the extension will fallback to the default branch URL. If multiple lines are selected in the current file, the extension will add them to the URL, allowing you to directly view and share the selected lines in the browser.

This extension can be used via the button added in the bottom bar, or via the command palette.

Getting started

In vscode, search for the open-repository-online extension.

Thanks

  • Thanks to @wChenonly for https://github.com/wChenonly/vscode-open-in-repository-button
  • Logo from https://thenounproject.com/icon/browser-6991186/ by Uswa KDT (CC BY 3.0 License)

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft