VS Code Live Share is a Microsoft extension that lets other people edit, debug and run terminals in your open project from their own VS Code, without cloning it. Install the extension, sign in, run Live Share: Start collaboration session (Share), and send the invite link that is copied to your clipboard.
As of November 2026, Microsoft lists the extension as being in maintenance mode: it still works, but no new features are planned. Everything below comes from Microsoft's Live Share documentation.
What you need before you start
- VS Code 1.72.0 or later. Microsoft's page lists Windows, macOS and 64-bit Linux, and says ARM Linux and 32-bit Linux are not supported.
- A Microsoft personal account, a Microsoft work or school account, or a GitHub account. Everyone who collaborates signs in so others know who they are.
- The Live Share extension (publisher ID
MS-vsliveshare.vsliveshare) from the Visual Studio Marketplace.
How to install and sign in to Live Share
- Open the Extensions view in VS Code and search for Live Share, or install it from the Marketplace page. Reload VS Code afterwards.
- Wait for the extension's dependencies to finish installing. Microsoft's guide tells you to reload and wait before signing in.
- Select Live Share on the status bar, or press
Ctrl+Shift+P(Cmd+Shift+Pon macOS) and run Live Share: Sign In. - Pick an account type. A browser opens to finish the sign-in; close it when you are done.
If VS Code does not pick up the sign-in, Microsoft's troubleshooting page has a sign-in section for that case.
How to start a Live Share session (host)
Open the folder or workspace you want to share first. Then:
- Select Live Share on the status bar, or open the Command Palette and run Live Share: Start collaboration session (Share).
- The invitation link is copied to your clipboard automatically. Send it to your guests by email, chat or any other channel.
- If you lose the link, select the session state item on the status bar, then Invite Others (Copy Link).
The first time you share, your firewall may ask whether to let the Live Share agent open a port. This is optional. It enables a direct mode that improves performance when you and the guest are on the same network.
For a quick reference to the Command Palette itself, see the VS Code Command Palette guide.
Make the session read-only
After you start sharing, a notification tells you the link is on the clipboard and offers a button to make the session read-only. In read-only mode guests cannot edit, but you can still see each other's cursors and navigate the project. They can also add or remove breakpoints and inspect variables while you debug, though they cannot step through the code.
Approve guests before they join
By default, signed-in guests join automatically and you get a notification with the option to remove them. To require approval for each one, add this to settings.json:
"liveshare.guestApprovalRequired": true
Guests who are not signed in can only join read-only, and by default you are prompted to approve them regardless of that setting. Set liveshare.anonymousGuestApproval to accept, reject or prompt (the default) to change that. You can also remove someone later: open the Live Share view, hover over or right-click the participant, and choose the remove participant option.
How to join a Live Share session (guest)
Install the extension and sign in first. Then use either route.
Join from the invite link
Open the link in a browser. The browser asks to start a Live Share-enabled tool; allow it and VS Code connects. Start VS Code at least once after installing the extension before you try the link, and let the install finish. When the join completes you are taken to the file the host is currently editing. If the host is offline, you are told so and need to ask them to share again.
Join manually
This helps when VS Code is already open or the browser handoff fails. On the Live Share tab in the Activity Bar, select Join collaboration session, paste the invitation URL, and press Enter.
Leave a session
Close the VS Code window, or open the Live Share view and select Leave collaboration session. This does not end the session for anyone else.
What you can share besides files
- Terminals. Only the host can start a shared terminal, and it can be read-only or read/write. In VS Code, terminals are shared read-only by default. Turn that off with
"liveshare.autoShareTerminals": false. - Servers. Sharing a server maps a port on the host to the same port on the guest, so both can open something like
http://localhost:3000. VS Code tries to detect and share application ports automatically. Disable that with"liveshare.autoShareServers": false. - Debugging. When the host starts a debug session, it is shared with all guests. For breakpoint basics, see debugging with breakpoints in VS Code.
- Following. Guests can follow the host's cursor, or switch to working independently. The Live Share view shows where each participant is.
Hide secrets with a .vsls.json file
Guests can browse the whole shared tree, so keep secrets out of it. Add a .vsls.json file to the shared folder. Two properties matter:
excludeFilesblocks files completely. Guests cannot open them even by following you, stepping in while debugging, or using Go to Definition.hideFilesonly removes them from the file tree. A hidden file can still open if a debugger steps into it.
{
"$schema": "http://json.schemastore.org/vsls",
"gitignore": "none",
"excludeFiles": [
"*.p12",
"*.cer",
"token"
],
"hideFiles": [
"bin",
"obj"
]
}
This is the example from Microsoft's security page. The gitignore property controls what happens to entries in .gitignore: hide (the default) treats them as hidden, exclude treats them as excluded, and none leaves them visible. The .vsls.json file itself is always excluded.
Live Share also shares files you open outside the shared folder by default. Stop that with "liveshare.shareExternalFiles": false.
Security: who should get the link
Microsoft's advice is blunt: share only with people you trust. A guest in a co-debugging session can run console commands, so a malicious guest could run something you would not want. Guests can also run commands through Code Actions and CodeLens only if you set liveshare.languages.allowGuestCommandControl to true; it is false by default.
Each session gets a new, non-guessable identifier in its link, and the link is valid only for that session. Connections are peer-to-peer when possible and fall back to a cloud relay otherwise. In both cases, Microsoft documents that the data is end-to-end encrypted with SSH and the service does not see session content.
If you share a link by mistake, remove the unexpected guest from the join notification or the Live Share view, or stop the session from the Stop collaboration session button. After a stop, guests can no longer reach the content.
Alternatives if Live Share does not fit
Microsoft's deprecation page suggests three other approaches, and says none is a direct replacement for every Live Share feature: screen sharing in Microsoft Teams with control given to a trusted person, asynchronous review through Git and pull requests, or a cloud environment such as GitHub Codespaces (which has no shared live editing by itself and can cost money). If you work on shared repositories, what GitHub is used for covers the pull request side.
If it still fails
Check the basics in this order. Confirm both people are signed in and on a supported VS Code version. For a browser link that does nothing, use Join collaboration session and paste the URL. If a corporate work account shows Need admin approval, Microsoft says your Azure AD administrator must grant consent for the Live Share application once. For anything else, Microsoft's Live Share troubleshooting page covers sign-in, sharing and joining.
Frequently asked questions
- Is VS Code Live Share free?
- The Microsoft documentation describes installing the extension from the Marketplace and signing in with a Microsoft or GitHub account, and it does not mention a fee for those steps. Check the extension's license terms on the Marketplace for the current conditions.
- Can a guest join without signing in?
- Yes, but only as a read-only guest. Anonymous guests must enter a name, and by default the host is prompted to approve them. The host can change this with the liveshare.anonymousGuestApproval setting (accept, reject or prompt).
- Do guests need the project installed on their machine?
- No. Guests work on the host's shared files through the session, so they do not clone the repository. Language services and debugging run from the host's context.
- Is Live Share still maintained?
- Microsoft says the Live Share extension for VS Code is in maintenance mode, with no new features planned. Live Share was removed from Visual Studio 2026 (version 18.12), and Microsoft's page does not announce a change to the VS Code extension.
- Is Live Share traffic encrypted?
- Yes. Microsoft documents that all data between peers is end-to-end encrypted with SSH, whether the connection is peer-to-peer or goes through the cloud relay.