DEV Community

Cover image for Visual Studio Live Share
Teddy Hendryanto
Teddy Hendryanto

Posted on

Visual Studio Live Share

Overview

When we talk about collaboration in one or more development projects, sometimes it's very inconvenient.
You need to sync code or configure the same development tools, settings, or environment.

Microsoft comes with Live Share for you to solve these kind of problems.
With Live Share, you can easily collaborate with your colleague. Each of you can open files, navigate, edit code, or highlight - and changes are instantly reflected. As you edit you can see your friend's cursor, jump to the same location, and follow their actions.

Installation

  1. Download and install Visual Studio Live Share Extension Pack from Marketplace. Link Image description
  2. Reload VS Code

How to use?

  1. Before you can start share your project with your friends, you need to sign in. You can sign in with Microsoft personal account or Github account.
  2. Start share your project by simply click on live share icon at right of your panel or click on live share button at the bottom of your status bar or press Cmd + Shift + P / Ctrl + Shift + P > type Live Share: Start Image description
  3. Share link will be automatically copied to your clipboard.
  4. Simply share your link through chat or any platform. Image description You can also make read-only session by clicking “Make read-only”
  5. To join a session, can join via join button, simply copy and paste your link to the browser. Image description
  6. If you successfully join a session, there will be a mark that signed you're following the host Image description
  7. To Share Terminal, you can click on “Share terminal” button or press Cmd + Shift + P / Ctrl + Shift + P > type Live Share: Share Terminal. Image description
  8. You can choose whether you want to share read-only / read-write terminal session.
  9. You can type or run command inside the terminal when host share read-write terminal session. Image description
  10. To Share Server, you can click on “Share server” button or Cmd + Shift + P / Ctrl + Shift + P > type Live Share: Share Server. Image description
  11. You can choose what port do you want to share. Image description
  12. Voila, when it is success, your friend can open the server on their end. Example: by open localhost:4000 on their browser

Top comments (1)

Collapse
 
wahyufaturrizky profile image
Wahyu Fatur Rizki

thankyou sharing session, very insight