• Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us

No products in the cart.

  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
  • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
  • POLICIES
    • PAYMENT GUIDE
    • SHIPPING POLICY
    • REFUND POLICY
    • TERMS & CONDITIONS
    • Contact Us
Software tricks/tips

How To use Live Share with Visual Studio Code

0 Comments

Live Share is a powerful extension for Visual Studio Code that facilitates real-time collaboration between developers. It allows users to share their coding sessions, enabling others to edit code, share servers, and even participate in debugging sessions simultaneously.

This guide demonstrates how to effectively use Live Share with Visual Studio Code. For clarity, the person initiating the session will be referred to as the inviter, while the one joining the session will be the invitee.

Step 1: Installing the Live Share Extension

Note: Modern versions of Visual Studio Code include Live Share by default. However, if you need the Live Share Audio extension, you can install the Live Share Extension Pack.

    1. Open Visual Studio Code.
    2. Go to the Extensions tab.
    3. Search for Live Share and click Install.
    4. After installation, reload Visual Studio Code if prompted.
    5. Sign in using your Microsoft or GitHub account by clicking the Sign In button in the bottom status bar.How To use Live Share with Visual Studio Code2

 

 

Step 2: Starting and Joining a Live Share Session

For the Inviter:

  1. Ensure you’re signed in.
  2. Click your username in the bottom status bar.
  3. Select Start Collaboration Session from the menu. Alternatively, open the Command Palette (CTRL+SHIFT+P on Windows or CMD+SHIFT+P on Mac) and type Start Collaboration Session.
  4. A notification will inform you that the invite link has been copied to your clipboard. Share this link with the invitee.

How To use Live Share with Visual Studio Code3For the Invitee:

  1. Click your username in the bottom status bar.
  2. Select Join Collaboration Session. Alternatively, use the Command Palette and type Join Collaboration Session.
  3. Enter the invite link provided by the inviter and join the session.

By default, the invitee’s view will follow the inviter’s navigation. The invitee can start navigating independently at any time.

Step 3: Controlling Access to Files

Live Share allows you to control what files your collaborators can view or edit. By default, all workspace files are accessible, but you can limit this by creating a .vsls.json file in your workspace.

Here’s an example configuration:

.vsls.json
{
"$schema": "http://json.schemastore.org/vsls",
"gitignore": "none",
"excludeFiles": ["secret.txt"],
"hideFiles": ["hiddenFolder"]
}
  • excludeFiles: Prevents collaborators from accessing specific files.
  • hideFiles: Hides files from view, but they can be made visible under certain conditions.

Step 4: Sharing a Server

When working on a local application, sharing a running server with collaborators can be challenging. Live Share simplifies this:

  1. Start your server locally as usual.
  2. Click your username in the bottom status bar and select Share Server. Alternatively, open the Command Palette and type Share Server.
  3. The invitee can then access the server by navigating to localhost on the designated port.How To use Live Share with Visual Studio Code4

Step 5: Sharing a Terminal

If you need to demonstrate terminal commands, Live Share allows you to share your terminal with collaborators:

    1. Click your username and choose Share Terminal from the menu.
    2. Select whether the terminal should be read-only or read/write.
    3. Once shared, collaborators can view or interact with the terminal depending on the permissions granted.
      How To use Live Share with Visual Studio Code

      How To use Live Share with Visual Studio Code

       

 

This feature is particularly useful for teaching or guiding someone through terminal-based tasks.

Conclusion

Live Share in Visual Studio Code is an invaluable tool for developers, enabling seamless collaboration, teaching, mentoring, and debugging. Its array of features allows teams to work together effectively, regardless of their physical location. With the ability to share code, servers, and even terminal sessions, Live Share transforms how developers collaborate on projects.

Rate this post
19
92 Views
Software Feature PrioritizationPrevSoftware Feature PrioritizationAugust 28, 2024
Effective Computer Hard Drive Cleanup Tips for Optimal PerformanceOctober 9, 2024Effective Computer Hard Drive Cleanup Tips for Optimal PerformanceNext
Buy Windows 11 Professional MS Products CD Key
Buy Office 2021 Professional Plus Key Global For 5 PC
Top rated products
  • AVG Ultimate 2021 with Antivirus + Cleaner, Secure VPN 10 Devices 2 Years AVG Ultimate 2021 with Antivirus + Cleaner, Secure VPN 10 Devices 2 Years
    Rated 5.00 out of 5
    $47.00
  • Avast Premium Security 2021 10 Devices 1 Year Global Avast Premium Security 2021 10 Devices 1 Year Global
    Rated 5.00 out of 5
    $28.00
  • Avast Ultimate Suite 2021 3 Years 10 Devices Global Avast Ultimate Suite 2021 3 Years 10 Devices Global
    Rated 5.00 out of 5
    $90.00
  • Windows Server 2022 Remote Desktop Services Device Connections (50) Cal Key Global Windows Server 2022 Remote Desktop Services Device Connections (50) Cal Key Global
    Rated 5.00 out of 5
    $22.00
  • Kaspersky Internet Security 2021 1 year 1 device key Global Kaspersky Internet Security 2021 1 year 1 device key Global
    Rated 5.00 out of 5
    $24.00
Products
  • Microsoft Visual Studio Enterprise 2022 For 1 PC Microsoft Visual Studio Enterprise 2022 For 1 PC $19.00
  • Avast Premium Security 2021 10 Devices 1 Year Global Avast Premium Security 2021 10 Devices 1 Year Global
    Rated 5.00 out of 5
    $28.00
  • Kaspersky Standard - 1 Device, 1 Year (Global License) Kaspersky Standard - 1 Device, 1 Year (Global License) $21.00
  • Windows 10 Pro Key Global Windows 10 Pro Key Global
    Rated 4.74 out of 5
    $6.00
  • Windows Server 2019 Datacenter Key Global Windows Server 2019 Datacenter Key Global
    Rated 4.75 out of 5
    $7.00
  • Windows Server 2025 Remote Desktop Services 50 User Connections Windows Server 2025 Remote Desktop Services 50 User Connections $25.00
  • Windows 11 Pro Key Global Windows 11 Pro Key Global
    Rated 5.00 out of 5
    $6.00
  • Kaspersky Internet Security 2021 1 year 1 device key Global Kaspersky Internet Security 2021 1 year 1 device key Global
    Rated 5.00 out of 5
    $24.00
  • Microsoft Visual Studio Enterprise 2019 For 1 PC Microsoft Visual Studio Enterprise 2019 For 1 PC
    Rated 4.88 out of 5
    $15.00
  • Microsoft Visual Studio 2019 Professional Key Microsoft Visual Studio 2019 Professional Key
    Rated 4.84 out of 5
    $15.00
Product categories
  • Anti Virus
  • Microsoft Office
  • Microsoft Project
  • Microsoft Visio
  • Microsoft Visual
  • Microsoft Windows
  • Other Software
  • Uncategorized

Buffcom.net always brings the best digital products and services to you. Specializing in Office Software and online marketing services

BIG SALE 50% IN MAY

Microsoft Office
Microsoft Windows
Anti-Virus
Contact Us

Visit Us:

125 Division St, New York, NY 10002, USA

Mail Us:

buffcom.net@gmail.com

TERMS & CONDITIONS | PAYMENT GUIDE  | SHIPPING POLICY  | REFUND POLICY

Copyright © 2019 buffcom.net  All Rights Reserved.