A VS Code extension that allows you to share your code via links with customizable permissions. Unlike Live Share, Code Share Link allows users to access shared code even when the host is offline, providing persistent access through shareable links with fine-grained permission controls.
- Generate shareable links for your projects
- Set custom permissions for shared links (read-only, write-only, read-write)
- Assign permissions to specific users
- Real-time collaboration with WebSocket synchronization
- Secure authentication system
- Persistent access to shared code (no need for the host to be online)
- Automatic synchronization of changes
- Version history tracking
- Open a project in VS Code
- Press
Ctrl+Shift+P
(Windows/Linux) orCmd+Shift+P
(Mac) to open the Command Palette - Type "Generate Shareable Link" and select the command
- If you're not logged in, you'll be prompted to log in or register
- The extension will upload your project files and generate a shareable link
- Copy the link and share it with others
- Press
Ctrl+Shift+P
(Windows/Linux) orCmd+Shift+P
(Mac) to open the Command Palette - Type "Manage Link Permissions" and select the command
- Select the permission level (read-only, write-only, read-write)
- Choose whether to set the permission for a specific user or for anyone with the link
- If you choose a specific user, enter their email address
- Receive a shared link from someone
- Open VS Code
- Press
Ctrl+Shift+P
(Windows/Linux) orCmd+Shift+P
(Mac) to open the Command Palette - Type "Open Shared Project" and select the command
- Enter the shared link
- The project will be downloaded and opened in VS Code
- VS Code 1.60.0 or higher
- Internet connection
- Node.js 14.x or higher (for development)
This extension contributes the following settings:
codeShareLink.apiUrl
: URL of the Code Share Link API server
- Large projects may take a long time to upload
- Binary files are not supported yet
- Limited to 100MB total project size
Initial release of Code Share Link
- Clone the repository
- Run
npm install
to install dependencies - Run
npm run compile
to compile the TypeScript code - Press F5 to launch the extension in debug mode
The extension requires a backend server to function. The server code is available in the server
directory.
To run the server locally:
- Navigate to the
server
directory - Run
npm install
to install dependencies - Create a
.env
file based on.env.example
- Run
npm start
to start the server - Update the
codeShareLink.apiUrl
setting in VS Code to point to your local server
Code Share Link consists of two main components:
-
VS Code Extension: The client-side component that integrates with VS Code
- Handles file synchronization
- Manages authentication
- Provides UI for generating links and setting permissions
-
Backend Server: A Node.js server that handles file storage, user authentication, and permission management
- RESTful API for file operations
- WebSocket server for real-time synchronization
- MongoDB database for storing project data, user information, and permissions
Unlike Live Share, which requires the host to be online for collaboration, Code Share Link:
- Stores project files on a server, allowing access even when the host is offline
- Provides persistent links that can be accessed anytime
- Offers fine-grained permission controls (read, write, read-write)
- Allows assigning different permissions to different users
- Tracks version history of files
This project is licensed under the MIT License - see the LICENSE file for details.
This extension uploads your code to our servers to enable sharing. Please do not share sensitive information or credentials.
For support, please open an issue on the GitHub repository or contact us at [email protected].