Copy GitHub URL VS Code extensionAvailable within VS Code and Cursor. Please file an issue for bugs or feature requests. Thanks! VS Code Extension Marketplace entry here. Copy GitHub URLCopy a GitHub URL of your current file location to the clipboard. Works for both text files (with line numbers) and non-text files like images, PDFs, and other binary files (without line numbers). Usage: For all file types (text and non-text), you can:
Example (text file): Example (image file): Copy GitHub URL PermanentCopy a GitHub Permanent URL of your current file location to the clipboard. Works for both text files (with line numbers) and non-text files like images (without line numbers). Usage: The same context menu options are available in the Explorer panel for this command. Example (text file): Example (image file): Copy GitHub URL Default BranchCopy a GitHub default branch URL of your current file location to the clipboard. Works for both text files (with line numbers) and non-text files like images (without line numbers). Usage: The same context menu options are available in the Explorer panel for this command. Example (text file): Example (image file): Install
TelemetryThis extension collects anonymous telemetry data to help improve the extension's functionality. You can disable telemetry collection by setting No personal or repository-identifying information is collected. TroubleshootingNon-text filesIf you encounter an error like "Failed to copy GitHub URL. Error: No active file found" when trying to copy a URL for non-text files (like images, PDFs, or binary files), try the following:
Note: The keyboard shortcuts may sometimes not work for non-text files depending on your VS Code configuration. The Explorer context menu is the most reliable method. Known Issues
|