Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copy Repo NameNew to Visual Studio Code? Get it now.
Copy Repo Name

Copy Repo Name

jhhtaylor

|
2 installs
| (0) | Free
Copy the current repository name to clipboard from context menu
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy Repo Name Logo

Copy Repo Name

A simple VS Code extension that copies the current repository name to your clipboard.

Support the creator

Buy Me A Coffee

Features

  • Copy the repository name from multiple locations:
    • Right-click on an editor tab (tab context menu)
    • Right-click on a file in the Explorer
    • Right-click on empty space in the Explorer
    • Access from the Command Palette (Cmd+Shift+P / Ctrl+Shift+P)
  • Automatically detects the repository name from Git remote URL
  • Falls back to workspace folder name if not in a Git repository
  • Positioned at the bottom of copy-related menu options for easy access

Usage

From Context Menus

Option 1: Right-click on an editor tab

  1. Right-click on any editor tab
  2. Select "Copy Repo Name"
  3. The repository name is now in your clipboard

Option 2: Right-click in the Explorer

  1. Right-click on any file/folder OR in empty space in the Explorer
  2. Select "Copy Repo Name"
  3. The repository name is now in your clipboard

From Command Palette

  1. Open the Command Palette (Cmd+Shift+P on macOS, Ctrl+Shift+P on Windows/Linux)
  2. Type "Copy Repo Name"
  3. Press Enter

How It Works

The extension attempts to get the repository name from your Git remote URL (e.g., origin). If you're not in a Git repository, it falls back to using the workspace folder name.

Requirements

VS Code version 1.99.0 or higher

Known Issues

If you encounter any problem, please open an Issue on the GitHub repository.

Release Notes

See CHANGELOG.md for a detailed list of changes and releases.

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