VS Live Share lets you collaborate in real time for coding, debugging and more. You can have multiple people working in the same file and see their cursor and live code updates. You can also open your own file and work independently. All changes are saved back to the hosts file system ready to be checked into source control. It’s great when multiple people need to work in the same area of the code and not step on each other’s toes.
Setup
- Install VS 15.6 or higher
- Install VS Live Share module
- Run VS in administrator mode
- Make sure your VS is logged into a microsoft account
Start Collaboration Session
- File -> Start collaboration session
- Authenticate to Live Share Services (if presented)
- Accept firewall exception (if presented)
- Send link to collaborators
- In the upper right corner you will see that you are sharing a session
- Click button to accept guests
Join Collaboration Session
- File -> Join collaboration session
- Paste link from host
- Click Join
- This can take a few minutes to actually connect depending on the size/number of files in the solution
- Authenticate to Live Share Services (if presented)
- Accept firewall exception (if presented)
- In the upper right corner you will see that you have joined a session
- You will see the file the host is currently editing
Interacting with a collaboration session
- Follow
- When you follow someone, your ui will automatically open the file they are editing
- You will see their cursor move, code edits, and highlight lines of text
- Focus
- Solution Explorer
- Shows the shared project in your local solution explorer window
- Opening a file downloads it from the host
- Saving a file syncs your changes back to the host
- You won’t see the changes in your local source repo
- Hopefully the don’t take all the credit for your shared work 🙂
- Code editing
- See a color coded cursor for each guest
- See highlighted lines
- See code edits as the person types
- Debugging
- Powershell terminal
- Shows a shared terminal window that any guest can type commands
- The host can set the permissions to full control or read only
- Ending the session
Troubleshooting
- If guests are having trouble connecting to your session
- Log into https://insiders.liveshare.vsengsaas.visualstudio.com/ with the same microsoft account used to authenticate in VS