CodeshareInstantly share links to specific lines of code with universal URLs that work anywhere. Features🚀 Universal Code Sharing - Generate web-accessible links to specific code selections that work in any browser ⌨️ Keyboard Shortcut - Quick access with 🎯 Precise Line Selection - Share exact line ranges with automatic highlighting 🔗 Git Integration - Automatically detects repository information and file paths 📋 One-Click Copy - Generated links are instantly copied to your clipboard Installation
UsageMethod 1: Keyboard Shortcut (Recommended)
Method 2: Context Menu
What You GetThe extension generates a universal URL in this format:
Example:
This URL can be:
How It Works: Two Powerful ModesThe CodeShare extension automatically adapts to your context. 1. Git-Aware Mode (Default) If the file you share is part of a Git repository with a recognized remote (like 2. Stateless Snippet Mode (Fallback) If you share code from a file that isn't in a Git repository, the extension automatically creates a temporary, anonymous snippet link. This link contains only the code you selected and will expire after 24 hours. This ensures you can share code from anywhere. Requirements
Extension SettingsThis extension doesn't add any VS Code settings. It works out of the box with your existing Git configuration. Known Issues
Troubleshooting"No active editor found"
"Please select code to share"
"No 'origin' remote found"
"Repository not found in your open workspaces"
Release Notes1.0.0
ContributingFound a bug or have a feature request? Please open an issue on our GitHub repository. LicenseThis extension is open source and available under the MIT License. Enjoy sharing your code effortlessly! 🎉 |