Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>At Mention ClipboardNew to Visual Studio Code? Get it now.
At Mention Clipboard

At Mention Clipboard

hail-kang

|
4 installs
| (0) | Free
Copy file path with line numbers as @mention format to clipboard
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

At Mention Clipboard

A VS Code extension that copies file references in @mention format to your clipboard. Perfect for referencing code in chat, documentation, or code reviews.

Features

Copy file references with a single keyboard shortcut:

  • File only: @campaign/apply.py
  • Single line: @campaign/apply.py#L12
  • Line range: @campaign/apply.py#L12-43

Usage

  1. Open any file in VS Code
  2. Optionally select one or more lines
  3. Press Cmd+Option+K (Mac) or Ctrl+Alt+K (Windows/Linux)
  4. The @mention is copied to your clipboard

Examples

Selection Result
No selection @src/utils/helper.ts
Line 5 selected @src/utils/helper.ts#L5
Lines 10-20 selected @src/utils/helper.ts#L10-20

Installation

From VSIX

  1. Download the .vsix file
  2. Open VS Code
  3. Press Cmd+Shift+P / Ctrl+Shift+P
  4. Run "Extensions: Install from VSIX..."
  5. Select the downloaded file

From Source

git clone https://github.com/hail-kang/vscode-extension-at-mention-clipboard.git
cd vscode-extension-at-mention-clipboard
npm install
npm run build
npm run package

Configuration

Setting Default Description
at-mention-clipboard.useRelativePath true Use relative path from workspace root
at-mention-clipboard.prefix @ Prefix character for the mention
at-mention-clipboard.showNotification true Show notification when copied

Keyboard Shortcuts

Command Mac Windows/Linux
Copy File Reference Cmd+Option+K Ctrl+Alt+K

You can customize the keyboard shortcut in VS Code's Keyboard Shortcuts settings.

Commands

  • At Mention Clipboard: Copy File Reference as @mention - Copy the current file reference to clipboard

Development

Prerequisites

  • Node.js 18+
  • npm

Setup

npm install

Build

npm run build

Watch Mode

npm run watch

Run Tests

npm test

Lint

npm run lint
npm run lint:fix

Package

npm run package

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

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