You Can't Spell Collaboration Without Communication
Tags: showdev, javascript, beginners, webdev
Published: 2019-06-02 15:37:43

---
title: You Can't Spell Collaboration Without Communication
published: true
description: 
tags: showdev, javascript, beginners, webdev
series: Visual Studio Live Share
cover_image: https://i.imgflip.com/32honm.jpg
---

In a [previous post](https://dev.to/lostintangent/collaboration-doesn-t-come-in-one-size-fits-all-33ai), I discussed how [Visual Studio Live Share](https://aka.ms/vsls) enables a flexible form of collaboration, that can accommodate a diverse set of developer preferences and [use cases](https://aka.ms/vsls-usecases) (e.g. pair programming, on-boarding, education). However, no amount of flexibility can make up for the fact that effective collaboration requires something even more fundamental: **communication**.

When we built Live Share, we expected it to be used alongside a communication service such a Teams, Slack or Discord. That way, Live Share could provide a collaborative development experience (e.g. co-editing, debugging, terminals), while complimenting whichever communication solution teams were already using. However, over time, we began to hear a [significant amount of interest](https://github.com/MicrosoftDocs/live-share/issues/69) in a **lightweight/companion chat experience**, that would allow developers to communicate directly as part of a Live Share session (without needing to use code comments!), and provide three potential benefits:

1. Having a **single rendezvous point** (the Live Share session URL) for joining a developer collaboration session, as well as establishing a line of communication. For certain use cases (e.g. technical interviews, hack-a-thons, product support), this could provide a simplified experience.

1. **Reducing context switches (and distractions)**, by being able to chat with other developers in the Live Share session, directly within your IDE.

1. Enabling **communication about code** more easily, since chat messages could be naturally associated with specific lines of code, as opposed to 
having to copy-paste snippets around.

Following the [Unix philosophy](https://en.wikipedia.org/wiki/Unix_philosophy), [Live Share itself](https://marketplace.visualstudio.com/items?itemName=MS-vsliveshare.vsliveshare) remains focused on solving only developer collaboration, and leaving the choice about communication up to each team. However, to address the aforementioned benefits, and enable developers to opt-into a more opinionated stack, we decided to create the [Live Share Extension Pack](https://aka.ms/vsls-pack), which represents a one-stop-shop for **collaboration and communication**. Let me illustrate how this looks!

## Audio Calling

After installing the [Live Share Extension Pack](https://aka.ms/vsls-pack), the Live Share "Session Details" view will have a shiny new option: `Start Audio Call..`. If you click that, it will start up a voice call, **without requiring you to sign-in to or use a separate service** 🚀. Even cooler, it will automatically notify guests about the call, and give them the option to join.

![Live Share Audio](https://user-images.githubusercontent.com/116461/58754395-d3c50f00-8483-11e9-8877-59389f675910.gif)

<em>A Live Share host (right) starting an audio call, directly within VS Code</em>

By default, you have to explicitly start and join a call. However, if you'd like to automatically start a call when you share a Live Share session, or always accept a call when you join a Live Share session, there are settings to change this behavior *(see below)*. Once enabled, the Live Share session URL becomes a **single rendezvous point** to begin coding and talking with other developers. We’ve found this to be pretty powerful.

<img width="500" alt="Screen Shot 2019-06-01 at 2 55 36 PM" src="https://user-images.githubusercontent.com/116461/58754032-7ded6880-847d-11e9-8275-2e35a6879203.png">

## Text Chat

In many cases, having a voice call alongside Live Share provides the best (and most commonly used) collaboration experience. However, there are circumstances where voice communication might not be preferred (e.g. you're in a team room), and use cases where it could be a distraction for guests to always communicate with the host via audio (e.g. live streaming, classrooms, team brown bags). To accomodate these scenarios, the [Live Share Extension Pack](https://aka.ms/vsls-pack) also provides an integrated text chat experience, that fully eliminates **context-switching** between apps.

![Team Chat](https://user-images.githubusercontent.com/116461/58754219-7c716f80-8480-11e9-92c0-16bec0c5c33a.gif)

<em>A Live Share host (right) chatting with a guest (left), directly within VS Code</em>

Once installed, the Live Share chat window will automatically open when you share or join a session. Since the chat thread is a regular Visual Studio Code document window, you can arrange it however you'd like, which allows everyone to easily code and chat at the same time. In addition to having a group chat amongst everyone in a Live Share session, you can also send direct messages to individual devs, by clicking the chat icon next to their name in the “Contact” panel.

This allows you to quickly ask someone a question, or see if they have a moment to Live Share, without needing to switch context in order to do it.

## Code Comments

Audio and text chat typically form the basis of communication when collaborating. However, there are situations where the thing you want to talk about is a *specific line/block of code*, and therefore, it would be much simpler if you could just annotate that code directly, and not have to wade through chat history in order to discuss it. When in a Live Share session, you'll notice that a new "comment bar" will appear, between the editor’s
line numbers and the code itself. Using that, you can click any line of code, and start a new comment thread. These comments will be immediately synchronized with all guests, and are visible within the file, as well as the `Comments` pane within Visual Studio Code.

![Comments](https://user-images.githubusercontent.com/116461/58754450-002d5b00-8485-11e9-982d-3dc1cbd550d5.gif)

<em>A Live Share host (right) leaving real-time code comments, directly within VS Code</em>

This kind of experience can enable some interesting scenarios, such as leaving todos/reminders for yourself during long-running Live Share sessions, using Live Share to perform ad-hoc/informal code reviews, or simply leaving comments for your pair while they're away or working in another file. The comment UI is the exact same that's used for viewing PR comments via the [GitHub Pull Requests](https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github) extension, which provides a nice continuity between collaboration in Visual Studio Code, regardless if it's real-time or asynchronous.

> Since the code commenting capability is broadly applicable, it is included directly in Live Share "core", as opposed to the Live Share Extension Pack (like audio and text chat).

## We'd Love To Chat!

By enabling developers to communicate using audio calls, text chat and code comments, we believe that Live Share can better accomodate the breadth of [use cases](https://aka.ms/vsls-usecases) that it's already being used for. However, in order to support developer choice, the audio and text chat experiences are fully optional, and only included in the [Live Share Extension Pack](https://aka.ms/vsls-pack). This way, regardless what kind of collaboration you're doing, and what kind of communication tools your team is using, Live Share can compliment it, and hopefully, make it [more enjoyable](https://aka.ms/vsls-why) 👍

{% twitter 1207149543424311296 %}