Performing live editing
There are several ways to allow users joined to a Live Share session to edit source code. One of them is to enable write permission for a specific user by selecting the user and clicking the Make read-write option:
Figure 10.10 – Allowing a collaborator to edit
A second way is for the user to join VS 2022 through a previously logged-in account. If the user is in VS Code on the web, they can perform the exchange from Menu | Open in Visual Studio.
After selecting Open in Visual Studio, VS will load the project and show a loading message, eventually showing the code with the active session. We will see a menu where the Live Share button is located to manage the session as a collaborator (see Figure 10.11):
Figure 10.11 – VS when a collaborator joins in a session
We can click on Joined to see the options that we have as a collaborator in an active session (see Figure 10.12):