Repo Anchor Icon

Repo Anchor

A powerful VS Code extension for creating shareable repository links with customizable domain options

Install from VS Code Marketplace

Copy Link to Selection

Generate links to specific code selections in your repository with just a right-click.

Copy Link to File

Quickly share links to entire files through the context menu.

Custom Domain Support

Replace default Git remote URLs with your custom domains for internal sharing.

Installation

  1. Open VS Code
  2. Press Ctrl+Shift+X (Windows/Linux) or Cmd+Shift+X (Mac)
  3. Search for "Repo Anchor"
  4. Click Install

Configuration

Extension Settings

You can customize Repo Anchor through VS Code settings:

  1. Open Command Palette (Ctrl+Shift+P / Cmd+Shift+P)
  2. Type "Open Repo Anchor Settings"
  3. Configure the following options:

Available Settings

  • Use Custom URL: Enable to use custom domains instead of the Git remote URL
  • Custom URL: Set your preferred custom domain
  • Custom Domains: Maintain a list of frequently used custom domains

Example: If your repository is hosted at github.com but you want to use your company's internal domain, set a custom URL like git.company.com.

Supported Git Hosting Services