A Visual Studio Code extension that allows you to copy a markdown-formatted link to the current file and cursor position. It generates a dual link containing both a web URL (GitHub) and a local editor URL (VSCode or Cursor), perfect for sharing context with teammates.
Features
Copy Markdown Link: Generates a link in the format File.ext#Lxx([github](https://github.com/bisquit/vscode-copy-mdlink/blob/HEAD/...)/[protocol](https://github.com/bisquit/vscode-copy-mdlink/blob/HEAD/...)).
Dual Links: Includes both GitHub web link (if in a repo) and local editor link.
Protocol Configuration: Choose between vscode (default), cursor, and antigravity protocols for the local link.
Usage
Open a file in VS Code.
Place your cursor on the line you want to link to.
Open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P).
Run the command "Copy Markdown Link: Copy".
The markdown link is copied to your clipboard.
Extension Settings
This extension contributes the following settings:
copyMdLink.protocol: Select the protocol for editor links. Options: vscode (default), cursor, antigravity.
Requirements
VS Code 1.104.0 or higher.
(Optional) Git installation for GitHub link generation.