%3CLINGO-SUB%20id%3D%22lingo-sub-1287777%22%20slang%3D%22en-US%22%3EVisual%20Studio%20Live%20Share%20Great%20resource%20for%20online%20assessment%20of%20students%20coding%20skills%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1287777%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fvisualstudio.microsoft.com%2Fservices%2Flive-share%2F%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EVisual%20Studio%20Live%20Share%3C%2FA%3E%20enables%20you%20to%20collaboratively%20edit%20and%20debug%20with%20others%20in%20real%20time%2C%20regardless%20what%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvisualstudio%2Fliveshare%2Freference%2Fplatform-support%23visual-studio%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eprogramming%20languages%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eyou're%20using%20or%20app%20types%20you're%20building.%20It%20allows%20you%20to%20instantly%20(and%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvisualstudio%2Fliveshare%2Freference%2Fsecurity%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Esecurely%3C%2FA%3E)%20share%20your%20current%20project%2C%20and%20then%20as%20needed%2C%20share%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvisualstudio%2Fliveshare%2Fuse%2Fvs%23co-debugging%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Edebugging%20sessions%3C%2FA%3E%2C%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvisualstudio%2Fliveshare%2Fuse%2Fvs%23share-a-terminal%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eterminal%20instances%3C%2FA%3E%2C%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvisualstudio%2Fliveshare%2Fuse%2Fvs%23share-a-server%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Elocalhost%20web%20apps%3C%2FA%3E%2C%20and%20more!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDevelopers%20that%20join%20your%20sessions%20receive%20all%20of%20their%20editor%20context%20from%20your%20environment%20(e.g.%20language%20services%2C%20debugging)%2C%20which%20ensures%20they%20can%20start%20productively%20collaborating%20immediately%2C%20without%20needing%20to%20clone%20any%20repos%20or%20install%20any%20SDKs.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAdditionally%2C%20unlike%20traditional%20pair%20programming%2C%20Visual%20Studio%20Live%20Share%20allows%20developers%20to%20work%20together%2C%20while%20retaining%20their%20personal%20editor%20preferences%20(e.g.%20theme%2C%20keybindings)%2C%20as%20well%20as%20having%20their%20own%20cursor.%20This%20allows%20you%20to%20seamlessly%20transition%20between%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvisualstudio%2Fliveshare%2Fuse%2Fvs%23following%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Efollowing%20one%20another%3C%2FA%3E%2C%20and%20being%20able%20to%20explore%20ideas%2Ftasks%20on%20your%20own.%20In%20practice%2C%20this%20ability%20to%20work%20together%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3Eand%3C%2FEM%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eindependently%20provides%20a%20collaboration%20experience%20that%20is%20potentially%20more%20natural%20for%20many%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvisualstudio%2Fliveshare%2Freference%2Fuse-cases%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ecommon%20use%20cases%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22http%3A%2F%2Faka.ms%2Fvsls%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3ELearn%20more%20about%20Visual%20Studio%20Live%20Share%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWithin%20a%20teaching%20or%20academic%20assessment%20situation%20you%20can%20combine%20Visual%20Studio%20Code%2C%20Visual%20Studio%202019%20or%20Visual%20Studio%20Online%20with%20a%20communication%2Fcollaboration%20tool%20such%20as%20Microsoft%20Teams%20to%20live%20assess%20students%20undertaking%20assessments.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EFor%20more%20details%20and%20information%20on%20how%20Teams%20can%20be%20used%20to%20enhance%20you%20online%20learning%20experiences%20see%20the%20following%20Webinars%26nbsp%3B%3C%2FP%3E%0A%3CDIV%3ETeams%20Webinars%20%3CA%20tabindex%3D%22-1%22%20title%3D%22https%3A%2F%2Faka.ms%2Fyoutubewebinars%22%20href%3D%22https%3A%2F%2Faka.ms%2FYouTubeWebinars%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2FYouTubeWebinars%3C%2FA%3E%3CBR%20%2F%3EEduDay%20Webinars%20%3CA%20tabindex%3D%22-1%22%20title%3D%22https%3A%2F%2Faka.ms%2Fedudaywebinars%22%20href%3D%22https%3A%2F%2Faka.ms%2FEduDayWebinars%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2FEduDayWebinars%3C%2FA%3E%3CBR%20%2F%3EOnline%20Teaching%20Webinars%20%3CA%20tabindex%3D%22-1%22%20title%3D%22https%3A%2F%2Faka.ms%2Fremotelearningwebinarschedule%22%20href%3D%22https%3A%2F%2Faka.ms%2FRemoteLearningWebinarSchedule%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2FRemoteLearningWebinarSchedule%3C%2FA%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3EWe%20also%20have%20a%20dedicated%20Microsoft%20Team%20channel%20for%20educator%20worldwide%20sharing%20best%20practice%20and%20how%20to%3A%3C%2FDIV%3E%0A%3CDIV%3ESimply%20complete%20the%20following%20Microsoft%20Form%20to%20get%20access%20to%20our%20Remote%20Teaching%20and%20Learning%20Community%20Teams%20Channel%26nbsp%3B%3CA%20tabindex%3D%22-1%22%20title%3D%22https%3A%2F%2Faka.ms%2Fjoinremotelearningcommunity%22%20href%3D%22https%3A%2F%2Faka.ms%2FJoinRemoteLearningCommunity%22%20target%3D%22_blank%22%20rel%3D%22noreferrer%20noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2FJoinRemoteLearningCommunity%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FDIV%3E%0A%3CP%3E%3CSTRONG%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22vscode-follow-multiple-viewlet%22%20style%3D%22width%3A%20644px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F182703iEA6CF87AC75F0760%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22vscode-follow-multiple-viewlet%22%20alt%3D%22vscode-follow-multiple-viewlet%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EAs%20with%20any%20collaboration%20tool%2C%20remember%20that%20you%20should%20only%20share%20your%20code%2C%20content%2C%20and%20applications%20with%20people%20you%20trust.%20With%20Students%20now%20all%20over%20the%20globe%20here%20are%20some%20key%20security%20considerations%20which%20Visual%20Studio%20Live%20Share%20offers.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1380233576%22%20id%3D%22toc-hId--1380233576%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22connectivity%22%20id%3D%22toc-hId-1107279257%22%20id%3D%22toc-hId-1107279257%22%3ESecurity%20Considerations%26nbsp%3B%3C%2FH2%3E%0A%3CP%3EThe%20role%20of%20the%20Live%20Share%20service%20is%20limited%20to%20user%20authentication%20and%20session%20discovery.%20The%20service%20itself%20does%20not%20store%20or%20ever%20have%20access%20any%20of%20the%20content%20of%20a%20session.%20All%20user%20content%20in%20Live%20Share%20is%20transmitted%20over%20the%20SSH%20session.%20That%20includes%20code%2C%20terminals%2C%20shared%20servers%2C%20and%20any%20other%20collaboration%20features%20provided%20by%20Live%20Share%20or%20extensions%20that%20build%20on%20it.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--700175206%22%20id%3D%22toc-hId--700175206%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22connectivity%22%20id%3D%22toc-hId-1787337627%22%20id%3D%22toc-hId-1787337627%22%3EConnectivity%3C%2FH2%3E%0A%3CP%3EWhen%20initiating%20a%20session%20between%20peers%2C%20Live%20Share%20attempts%20to%20establish%20a%20peer-to-peer%20connection%2C%20and%20only%20if%20that%20isn't%20possible%20(e.g.%20due%20to%20firewalls%2FNATs)%2C%20does%20it%20fall%20back%20to%20using%20a%20cloud%20relay.%20However%2C%20in%20both%20connection%20types%20(P2P%20or%20relay)%2C%20all%20data%20transmitted%20between%20peers%20is%20end-to-end%20encrypted%20using%20the%20SSH%20protocol.%20In%20the%20case%20of%20a%20relay%20connection%2C%20the%20SSH%20encryption%20is%20layered%20on%20top%20of%20TLS-encrypted%20WebSockets.%20This%20means%20that%20Live%20Share%20doesn't%20depend%20on%20the%20cloud%20relay%20service%20for%20security.%20Even%20if%20the%20relay%20was%20compromised%2C%20it%20could%20not%20decrypt%20any%20of%20the%20Live%20Share%20communication.%3C%2FP%3E%0A%3CP%3ETo%20find%20out%20more%20about%20altering%20these%20behaviors%20and%20Live%20Share's%20connectivity%20requirements%2C%20see%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvisualstudio%2Fliveshare%2Freference%2Fconnectivity%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22relative-path%22%3Econnectivity%20requirements%20for%20Live%20Share%3C%2FA%3E%3C%2FSTRONG%3E.%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1817068195%22%20id%3D%22toc-hId--1817068195%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22wire-encryption%22%20id%3D%22toc-hId-670444638%22%20id%3D%22toc-hId-670444638%22%3EWire%20Encryption%3C%2FH3%3E%0A%3CP%3EThe%20SSH%20protocol%20uses%20a%20Diffie-Hellman%20key-exchange%20to%20establish%20a%20shared%20secret%20for%20the%20session%2C%20and%20derives%20from%20that%20a%20key%20for%20AES%20symmetric%20encryption.%20The%20encryption%20key%20is%20rotated%20periodically%20throughout%20the%20duration%20of%20the%20session.%20The%20shared%20session%20secret%20and%20all%20encryption%20keys%20are%20only%20maintained%20in-memory%20by%20both%20sides%2C%20and%20are%20only%20valid%20for%20the%20duration%20of%20the%20session.%20They%20are%20never%20written%20to%20disk%20or%20sent%20to%20any%20service%20(including%20Live%20Share).%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1137009825%22%20id%3D%22toc-hId--1137009825%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22peer-authentication%22%20id%3D%22toc-hId-1350503008%22%20id%3D%22toc-hId-1350503008%22%3EPeer%20Authentication%3C%2FH3%3E%0A%3CP%3EThe%20SSH%20session%20is%20also%20two-way%20authenticated.%20The%20host%20(SSH%20server%20role)%20uses%20public%2Fprivate%20key%20authentication%20as%20is%20standard%20for%20the%20SSH%20protocol.%20When%20a%20host%20shares%20a%20Live%20Share%20session%2C%20it%20generates%20a%20unique%20RSA%20public%2Fprivate%20key-pair%20for%20the%20session.%20The%20host%20private%20key%20is%20kept%20only%20in%20memory%20in%20the%20host%20process%3B%20it%20is%20never%20written%20to%20disk%20or%20sent%20to%20any%20service%20including%20the%20Live%20Share%20service.%20The%20host%20public%20key%20is%20published%20to%20the%20Live%20Share%20service%20along%20with%20the%20session%20connection%20information%20(IP%20address%20and%2For%20relay%20endpoint)%20where%20guests%20can%20access%20it%20via%20the%20invitation%20link.%20When%20a%20guest%20connects%20to%20the%20host's%20SSH%20session%2C%20the%20guest%20uses%20the%20SSH%20host%20authentication%20protocol%20to%20validate%20that%20the%20host%20holds%20the%20private%20key%20corresponding%20to%20the%20published%20public%20key%20(without%20the%20guest%20actually%20getting%20to%20see%20the%20private%20key).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20guest%20uses%20a%20Live%20Share%20token%20to%20authenticate%20itself%20with%20the%20host.%20The%20token%20is%20a%20signed%20JWT%20issued%20by%20the%20Live%20Share%20service%20that%20includes%20claims%20about%20the%20user%20identity%20(obtained%20via%20MSA%2C%20AAD%2C%20or%20GitHub%20sign-in).%20The%20token%20also%20has%20claims%20that%20indicate%20the%20guest%20is%20allowed%20to%20access%20that%20specific%20Live%20Share%20session%20(because%20they%20had%20the%20invitation%20link%20and%2For%20they%20were%20specifically%20invited%20by%20the%20host).%20The%20host%20validates%20that%20token%20and%20checks%20the%20claims%20(and%20depending%20on%20options%20may%20prompt%20the%20host%20user)%20before%20allowing%20the%20guest%20to%20join%20the%20session.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1339999904%22%20id%3D%22toc-hId-1339999904%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22invitations-and-join-access%22%20id%3D%22toc-hId--467454559%22%20id%3D%22toc-hId--467454559%22%3EInvitations%20and%20join%20access%3C%2FH2%3E%0A%3CP%3EEach%20time%20you%20start%20a%20new%20collaboration%20session%2C%20Live%20Share%20generates%20a%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Enew%20unique%20identifier%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ethat%20is%20placed%20in%20the%20invitation%20link.%20These%20links%20provide%20a%20solid%2C%20secure%20foundation%20to%20invite%20those%20you%20trust%20since%20the%20identifier%20in%20the%20link%20is%20%22non-guessable%22%20and%20is%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3Eonly%20valid%20for%20the%20duration%20of%20a%20single%20collaboration%20session%3C%2FEM%3E.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--601139283%22%20id%3D%22toc-hId--601139283%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22controlling-file-access-and-visibility%22%20id%3D%22toc-hId-1886373550%22%20id%3D%22toc-hId-1886373550%22%3EControlling%20file%20access%20and%20visibility%3C%2FH2%3E%0A%3CP%3EAs%20a%20guest%2C%20Live%20Share's%20remote%20model%20gives%20you%20quick%20read%2Fwrite%20access%20to%20files%20and%20folders%20the%20host%20has%20shared%20with%20you%20without%20having%20to%20sync%20the%20entire%20contents%20of%20a%20project.%20You%20can%20therefore%20independently%20navigate%20and%20edit%20files%20in%20the%20entire%20shared%20file%20tree.%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EHowever%2C%20this%20freedom%20does%20pose%20some%20risks%20to%20the%20host.%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3EIn%20concept%2C%20a%20developer%20could%20opt%20to%20go%20in%20and%20modify%20source%20code%20without%20your%20knowledge%20or%20see%20sensitive%20source%20code%20or%20%22secrets%22%20located%20somewhere%20in%20the%20shared%20file%20tree.%20Consequently%2C%20as%20a%20host%2C%20you%20may%20not%20always%20want%20the%20guest%20to%20have%20access%20to%20the%20entirety%20of%20a%20project%20you%20are%20sharing.%20Thankfully%2C%20an%20added%20advantage%20of%20this%20remote%20model%20is%20that%20you%20can%20opt%20to%20%22exclude%22%20files%20you%20do%20not%20want%20to%20share%20with%20anyone%20without%20sacrificing%20on%20functionality.%20Your%20guests%20can%20still%20participate%20in%20things%20like%20debugging%20sessions%20that%20would%20normally%20require%20access%20to%20these%20files%20if%20they%20wanted%20to%20do%20so%20on%20their%20own.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20accomplish%20this%20by%20adding%20a%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E.vsls.json%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efile%20to%20the%20folder%20or%20project%20you%20are%20sharing.%20Any%20settings%20you%20add%20to%20this%20json%20formatted%20file%20changes%20how%20Live%20Share%20processes%20files.%20In%20addition%20to%20providing%20you%20direct%20control%2C%20these%20files%20can%20also%20be%20committed%20to%20source%20control%20so%20anyone%20cloning%20a%20project%20will%20be%20able%20to%20take%20advantage%20of%20these%20rules%20with%20no%20additional%20effort%20on%20their%20part.%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-208001806%22%20id%3D%22toc-hId-208001806%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22disabling-external-file-sharing%22%20id%3D%22toc-hId--1599452657%22%20id%3D%22toc-hId--1599452657%22%3EDisabling%20external%20file%20sharing%3C%2FH3%3E%0A%3CP%3EBy%20default%2C%20Live%20Share%20will%20also%20share%20any%20files%20the%20host%20opens%20that%20are%20external%20to%20the%20shared%20folder%20%2F%20solution.%20This%20makes%20it%20easy%20to%20quickly%20open%20up%20other%20related%20files%20without%20having%20to%20re-share.%3C%2FP%3E%0A%3CP%3EIf%20you%20would%20prefer%20to%20disable%20this%20feature%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CP%3EIn%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EVS%20Code%3C%2FSTRONG%3E%2C%20add%20the%20following%20to%20settings.json%3A%3C%2FP%3E%0A%3CDIV%20id%3D%22code-try-4%22%20class%3D%22codeHeader%22%20data-bi-name%3D%22code-header%22%3E%3CSPAN%20class%3D%22language%22%3EJSON%3C%2FSPAN%3E%3CBUTTON%20class%3D%22action%20is-relative%22%20type%3D%22button%22%20data-bi-name%3D%22copy%22%20aria-label%3D%22Copy%20code%22%3E%3C%2FBUTTON%3E%3C%2FDIV%3E%0A%3CPRE%20class%3D%22has-inner-focus%22%20tabindex%3D%220%22%3E%3CCODE%20class%3D%22lang-json%22%20data-author-content%3D%22%26quot%3Bliveshare.shareExternalFiles%26quot%3B%3A%20false%0A%22%3E%3CSPAN%3E%3CSPAN%20class%3D%22hljs-string%22%3E%22liveshare.shareExternalFiles%22%3C%2FSPAN%3E%3A%20%3CSPAN%20class%3D%22hljs-literal%22%3Efalse%3C%2FSPAN%3E%0A%3C%2FSPAN%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3C%2FLI%3E%0A%3CLI%3E%0A%3CP%3EIn%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EVisual%20Studio%3C%2FSTRONG%3E%2C%20set%20Tools%20%26gt%3B%20Options%20%26gt%3B%20Live%20Share%20%26gt%3B%20%22Share%20External%20Files%22%20to%20False%3C%2FP%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20id%3D%22toc-hId-758977457%22%20id%3D%22toc-hId-758977457%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22read-only-mode%22%20id%3D%22toc-hId--1048477006%22%20id%3D%22toc-hId--1048477006%22%3ERead-only%20mode%3C%2FH2%3E%0A%3CP%3ESometimes%20when%20you%20share%20your%20code%20as%20a%20host%2C%20you%20don't%20want%20your%20guests%20to%20make%20edits.%20You%20might%20need%20your%20guest%20to%20take%20a%20look%20at%20some%20of%20your%20code%2C%20or%20you%20are%20showing%20your%20project%20to%20a%20large%20number%20of%20guests%20and%20do%20not%20want%20any%20unnecessary%20or%20accidental%20edits%20to%20be%20made.%20Live%20Share%20offers%20the%20ability%20to%20share%20projects%20in%20read-only%20mode.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20a%20host%2C%20when%20sharing%2C%20you%20have%20the%20option%20to%20enable%20read-only%20mode%20for%20a%20collaboration%20session.%20When%20a%20guest%20joins%2C%20they%20will%20not%20be%20able%20to%20make%20edits%20to%20the%20code%2C%20though%20you%20can%20still%20see%20each%20other's%20cursors%20and%20highlights%20as%20well%20as%20navigate%20through%20the%20project.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20still%20co-debug%20with%20guests%20while%20in%20read-only%20mode.%20Guests%20will%20not%20have%20the%20ability%20to%20step%20through%20the%20debugging%20process%2C%20but%20can%20still%20add%20or%20remove%20breakpoints%2C%20and%20inspect%20variables.%20Additionally%2C%20you%20can%20still%20share%20servers%20and%20terminals%20(read-only)%20with%20guests.%3C%2FP%3E%0A%3CP%3EYou%20can%20learn%20more%20about%20starting%20a%20read-only%20collaboration%20session%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1439035827%22%20id%3D%22toc-hId-1439035827%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22co-debugging%22%20id%3D%22toc-hId--368418636%22%20id%3D%22toc-hId--368418636%22%3ECo-debugging%3C%2FH2%3E%0A%3CP%3EWhen%20you're%20tackling%20tough%20coding%20problems%20or%20bugs%2C%20having%20an%20extra%20pair%20of%20eyes%20when%20debugging%20can%20be%20really%20useful.%20Visual%20Studio%20Live%20Share%20enables%20%22collaborative%20debugging%22%20or%20%22co-debugging%22%20by%20sharing%20the%20debugging%20session%20with%20all%20guests%20whenever%20the%20host%20starts%20debugging.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20a%20host%2C%20you%20are%20in%20complete%20control%20over%20when%20a%20debugging%20session%20starts%20or%20stops%2C%20but%20co-debugging%20does%20pose%20some%20risks%20if%20you%20are%20sharing%20with%20someone%20you%20do%20not%20trust.%20Live%20Share%20allows%20guests%20you%20invite%20to%20run%20console%2FREPL%20commands%20and%20there%20is%20therefore%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Ea%20risk%20of%20a%20malicious%20actor%20running%20a%20command%20you%20would%20not%20want%20them%20to%20run%3C%2FSTRONG%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EConsequently%2C%20you%20should%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Eonly%20co-debug%20with%20those%20you%20trust.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-2119094197%22%20id%3D%22toc-hId-2119094197%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22sharing-a-terminal%22%20id%3D%22toc-hId-311639734%22%20id%3D%22toc-hId-311639734%22%3ESharing%20a%20terminal%3C%2FH2%3E%0A%3CP%3EModern%20development%20makes%20frequent%20use%20of%20a%20wide%20array%20of%20command%20line%20tools.%20Fortunately%2C%20Live%20Share%20allows%20you%20as%20a%20host%20to%20optionally%20%22share%20a%20terminal%22%20with%20guests.%20The%20shared%20terminal%20can%20be%20read-only%20or%20fully%20collaborative%20so%20both%20you%20and%20the%20guests%20can%20run%20commands%20and%20see%20the%20results.%20As%20the%20host%2C%20you're%20able%20to%20allow%20other%20collaborators%20to%20either%20just%20see%20the%20output%20or%20to%20use%20any%20number%20of%20command%20line%20tools%20to%20run%20tests%2C%20builds%2C%20or%20even%20triage%20environment-specific%20problems.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnly%20hosts%20can%20start%20shared%20terminals%20to%20prevent%20guests%20from%20starting%20one%20up%20and%20doing%20something%20you%20are%20not%20expecting%20or%20watching.%20When%20you%20start%20a%20shared%20terminal%20as%20a%20host%2C%20you%20can%20specify%20whether%20it%20should%20be%20read-only%20or%20read%2Fwrite.%20When%20the%20terminal%20is%20read%2Fwrite%2C%20everyone%20can%20type%20in%20the%20terminal%20including%20the%20host%20which%20makes%20it%20easy%20to%20intervene%20if%20a%20guest%20is%20doing%20something%20you%20do%20not%20like.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHowever%2C%20to%20be%20safe%2C%20you%20should%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Eonly%20give%20read%2Fwrite%20access%20to%20guests%20when%20you%20know%20they%20actually%20need%20it%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%20stick%20with%20read-only%20terminals%20for%20scenarios%20where%20you%20just%20want%20the%20guest%20to%20see%20the%20output%20of%20any%20commands%20you%20run.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--797652788%22%20id%3D%22toc-hId--797652788%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22aad-admin-consent%22%20id%3D%22toc-hId-1689860045%22%20id%3D%22toc-hId-1689860045%22%3EAAD%20Admin%20Consent%3C%2FH2%3E%0A%3CP%3EWhen%20signing%20in%20using%20a%20Microsoft%20backed%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3Eschool%20email%20address%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eyou%20may%20see%20a%20message%20saying%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%22Need%20admin%20approval%22%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ewhen%20signing%20in.%20This%20is%20because%20Live%20Share%20requires%20read%20access%20to%20user%20information%20for%20its%20security%20features%20and%20your%20Azure%20AD%20tenant%20is%20set%20up%20to%20require%20%E2%80%9Cadmin%20consent%E2%80%9D%20for%20new%20applications%20accessing%20the%20contents%20of%20the%20directory.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYour%20AD%20admin%20would%20need%20to%20resolve%20this%20for%20you%20using%20the%20following%20information%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EApplication%20Name%3C%2FSTRONG%3E%3A%20Visual%20Studio%20Live%20Share%20(Insiders)%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EApplication%20Type%3C%2FSTRONG%3E%3A%20Web%20App%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EApplications%20Status%3C%2FSTRONG%3E%3A%20Production%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EDelegated%20Permissions%3C%2FSTRONG%3E%3A%20User.Read%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EApplication%20URL%3C%2FSTRONG%3E%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Finsiders.liveshare.vsengsaas.visualstudio.com%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22external%22%3Ehttps%3A%2F%2Finsiders.liveshare.vsengsaas.visualstudio.com%2F%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EReply%20URL%3C%2FSTRONG%3E%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Finsiders.liveshare.vsengsaas.visualstudio.com%2Fauth%2Fredirect%2Fwindowslive%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22external%22%3Ehttps%3A%2F%2Finsiders.liveshare.vsengsaas.visualstudio.com%2Fauth%2Fredirect%2Fwindowslive%2F%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EThis%20would%20only%20need%20to%20be%20done%20once%20for%20anyone%20using%20Live%20Share.%20See%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fdevelop%2Factive-directory-v2-scopes%23admin-restricted-scopes%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22external%22%3Ehere%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fstackoverflow.com%2Fquestions%2F39861830%2Fazure-ad-admin-consent-from-the-azure-portal%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22external%22%3Ehere%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efor%20details.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--117594418%22%20id%3D%22toc-hId--117594418%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22see-also%22%20id%3D%22toc-hId--1925048881%22%20id%3D%22toc-hId--1925048881%22%3ESee%20also%3C%2FH2%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvisualstudio%2Fliveshare%2Fuse%2Fvscode%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22relative-path%22%3EHow-to%3A%20Collaborate%20using%20Visual%20Studio%20Code%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvisualstudio%2Fliveshare%2Freference%2Fsecurity%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EHow-to%3A%20Secure%20Visual%20Studio%20Code%20Live%20Share%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvisualstudio%2Fliveshare%2Fuse%2Fvs%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22relative-path%22%3EHow-to%3A%20Collaborate%20using%20Visual%20Studio%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvisualstudio%2Fliveshare%2Freference%2Fconnectivity%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22relative-path%22%3EConnectivity%20requirements%20for%20Live%20Share%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20id%3D%22toc-hId-562463952%22%20id%3D%22toc-hId-562463952%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22guest-limitations%22%20id%3D%22toc-hId--1244990511%22%20id%3D%22toc-hId--1244990511%22%3EGuest%20limitations%3C%2FH2%3E%0A%3CP%3EWhile%20there%20are%20currently%20some%20shortcomings%20guests%20will%20experience%20while%20using%20the%20features%20described%20above%2C%20collaboration%20session%20hosts%20retain%20the%20complete%20functionality%20of%20their%20tool%20of%20choice.%20See%20the%20following%20for%20more%20information%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvisualstudio%2Fliveshare%2Freference%2Fplatform-support%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22relative-path%22%3ELanguage%20and%20platform%20support%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvisualstudio%2Fliveshare%2Freference%2Fextensions%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22relative-path%22%3EExtension%20support%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fvsls-issues%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22external%22%3EAll%20major%20bugs%2C%20feature%20requests%2C%20and%20limitations%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fvsls-feature-requests%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22external%22%3EAll%20feature%20requests%20and%20limitations%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvisualstudio%2Fliveshare%2Ftroubleshooting%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22relative-path%22%3ETroubleshooting%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20id%3D%22toc-hId-1242522322%22%20id%3D%22toc-hId-1242522322%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22next-steps%22%20id%3D%22toc-hId--564932141%22%20id%3D%22toc-hId--564932141%22%3ENext%20steps%3C%2FH2%3E%0A%3CP%3ECheck%20out%20these%20additional%20articles%20for%20more%20information.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvisualstudio%2Fliveshare%2Fquickstart%2Fshare%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22relative-path%22%3EQuickstart%3A%20Share%20your%20first%20project%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvisualstudio%2Fliveshare%2Fquickstart%2Fshare%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22relative-path%22%3EQuickstart%3A%20Join%20your%20first%20session%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvisualstudio%2Fliveshare%2Fuse%2Fvs%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22relative-path%22%3EHow-to%3A%20Collaborate%20using%20Visual%20Studio%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvisualstudio%2Fliveshare%2Freference%2Fconnectivity%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22relative-path%22%3EConnectivity%20requirements%20for%20Live%20Share%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvisualstudio%2Fliveshare%2Freference%2Fsecurity%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22relative-path%22%3ESecurity%20features%20of%20Live%20Share%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fvisualstudio%2Fliveshare%2Freference%2Flinux%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22relative-path%22%3ELinux%20installation%20details%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1287777%22%20slang%3D%22en-US%22%3E%3CP%3ECollaboration%20sessions%20in%20Visual%20Studio%20Live%20Share%20are%20powerful%20in%20that%20they%20allow%20any%20number%20of%20people%20to%20join%20in%20a%20session%20and%20collaboratively%20edit%2C%20debug%20and%20more.%20This%20solution%20is%20perfect%20for%20online%20live%20assessment%20of%20students%20in%20coding%20availability.%20With%20Visual%20Studio%20Live%20Share%20you%20can%20secure%20your%20environment%20as%20needed.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1287777%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Ecode%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Edevelopment%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Efaculty%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Elearning%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Esoftware%20engineering%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EVisual%20Studio%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EVS%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Evscode%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

Visual Studio Live Share enables you to collaboratively edit and debug with others in real time, regardless what programming languages you're using or app types you're building. It allows you to instantly (and securely) share your current project, and then as needed, share debugging sessions, terminal instances, localhost web apps, and more!

 

Developers that join your sessions receive all of their editor context from your environment (e.g. language services, debugging), which ensures they can start productively collaborating immediately, without needing to clone any repos or install any SDKs.

 

Additionally, unlike traditional pair programming, Visual Studio Live Share allows developers to work together, while retaining their personal editor preferences (e.g. theme, keybindings), as well as having their own cursor. This allows you to seamlessly transition between following one another, and being able to explore ideas/tasks on your own. In practice, this ability to work together and independently provides a collaboration experience that is potentially more natural for many common use cases.

 

Learn more about Visual Studio Live Share

 

Within a teaching or academic assessment situation you can combine Visual Studio Code, Visual Studio 2019 or Visual Studio Online with a communication/collaboration tool such as Microsoft Teams to live assess students undertaking assessments. 

For more details and information on how Teams can be used to enhance you online learning experiences see the following Webinars 

 
We also have a dedicated Microsoft Team channel for educator worldwide sharing best practice and how to:
Simply complete the following Microsoft Form to get access to our Remote Teaching and Learning Community Teams Channel https://aka.ms/JoinRemoteLearningCommunity

vscode-follow-multiple-viewlet

As with any collaboration tool, remember that you should only share your code, content, and applications with people you trust. With Students now all over the globe here are some key security considerations which Visual Studio Live Share offers.

 

Security Considerations 

The role of the Live Share service is limited to user authentication and session discovery. The service itself does not store or ever have access any of the content of a session. All user content in Live Share is transmitted over the SSH session. That includes code, terminals, shared servers, and any other collaboration features provided by Live Share or extensions that build on it.

 

Connectivity

When initiating a session between peers, Live Share attempts to establish a peer-to-peer connection, and only if that isn't possible (e.g. due to firewalls/NATs), does it fall back to using a cloud relay. However, in both connection types (P2P or relay), all data transmitted between peers is end-to-end encrypted using the SSH protocol. In the case of a relay connection, the SSH encryption is layered on top of TLS-encrypted WebSockets. This means that Live Share doesn't depend on the cloud relay service for security. Even if the relay was compromised, it could not decrypt any of the Live Share communication.

To find out more about altering these behaviors and Live Share's connectivity requirements, see connectivity requirements for Live Share.

 

Wire Encryption

The SSH protocol uses a Diffie-Hellman key-exchange to establish a shared secret for the session, and derives from that a key for AES symmetric encryption. The encryption key is rotated periodically throughout the duration of the session. The shared session secret and all encryption keys are only maintained in-memory by both sides, and are only valid for the duration of the session. They are never written to disk or sent to any service (including Live Share).

 

Peer Authentication

The SSH session is also two-way authenticated. The host (SSH server role) uses public/private key authentication as is standard for the SSH protocol. When a host shares a Live Share session, it generates a unique RSA public/private key-pair for the session. The host private key is kept only in memory in the host process; it is never written to disk or sent to any service including the Live Share service. The host public key is published to the Live Share service along with the session connection information (IP address and/or relay endpoint) where guests can access it via the invitation link. When a guest connects to the host's SSH session, the guest uses the SSH host authentication protocol to validate that the host holds the private key corresponding to the published public key (without the guest actually getting to see the private key).

 

The guest uses a Live Share token to authenticate itself with the host. The token is a signed JWT issued by the Live Share service that includes claims about the user identity (obtained via MSA, AAD, or GitHub sign-in). The token also has claims that indicate the guest is allowed to access that specific Live Share session (because they had the invitation link and/or they were specifically invited by the host). The host validates that token and checks the claims (and depending on options may prompt the host user) before allowing the guest to join the session.

 

Invitations and join access

Each time you start a new collaboration session, Live Share generates a new unique identifier that is placed in the invitation link. These links provide a solid, secure foundation to invite those you trust since the identifier in the link is "non-guessable" and is only valid for the duration of a single collaboration session.

 

Controlling file access and visibility

As a guest, Live Share's remote model gives you quick read/write access to files and folders the host has shared with you without having to sync the entire contents of a project. You can therefore independently navigate and edit files in the entire shared file tree. However, this freedom does pose some risks to the host. In concept, a developer could opt to go in and modify source code without your knowledge or see sensitive source code or "secrets" located somewhere in the shared file tree. Consequently, as a host, you may not always want the guest to have access to the entirety of a project you are sharing. Thankfully, an added advantage of this remote model is that you can opt to "exclude" files you do not want to share with anyone without sacrificing on functionality. Your guests can still participate in things like debugging sessions that would normally require access to these files if they wanted to do so on their own.

 

You can accomplish this by adding a .vsls.json file to the folder or project you are sharing. Any settings you add to this json formatted file changes how Live Share processes files. In addition to providing you direct control, these files can also be committed to source control so anyone cloning a project will be able to take advantage of these rules with no additional effort on their part.

 

Disabling external file sharing

By default, Live Share will also share any files the host opens that are external to the shared folder / solution. This makes it easy to quickly open up other related files without having to re-share.

If you would prefer to disable this feature:

 

  • In VS Code, add the following to settings.json:

    JSON
    "liveshare.shareExternalFiles": false
    
  • In Visual Studio, set Tools > Options > Live Share > "Share External Files" to False

 

Read-only mode

Sometimes when you share your code as a host, you don't want your guests to make edits. You might need your guest to take a look at some of your code, or you are showing your project to a large number of guests and do not want any unnecessary or accidental edits to be made. Live Share offers the ability to share projects in read-only mode.

 

As a host, when sharing, you have the option to enable read-only mode for a collaboration session. When a guest joins, they will not be able to make edits to the code, though you can still see each other's cursors and highlights as well as navigate through the project.

 

You can still co-debug with guests while in read-only mode. Guests will not have the ability to step through the debugging process, but can still add or remove breakpoints, and inspect variables. Additionally, you can still share servers and terminals (read-only) with guests.

You can learn more about starting a read-only collaboration session: 

 

Co-debugging

When you're tackling tough coding problems or bugs, having an extra pair of eyes when debugging can be really useful. Visual Studio Live Share enables "collaborative debugging" or "co-debugging" by sharing the debugging session with all guests whenever the host starts debugging.

 

As a host, you are in complete control over when a debugging session starts or stops, but co-debugging does pose some risks if you are sharing with someone you do not trust. Live Share allows guests you invite to run console/REPL commands and there is therefore a risk of a malicious actor running a command you would not want them to run.

 

Consequently, you should only co-debug with those you trust.

 

Sharing a terminal

Modern development makes frequent use of a wide array of command line tools. Fortunately, Live Share allows you as a host to optionally "share a terminal" with guests. The shared terminal can be read-only or fully collaborative so both you and the guests can run commands and see the results. As the host, you're able to allow other collaborators to either just see the output or to use any number of command line tools to run tests, builds, or even triage environment-specific problems.

 

Only hosts can start shared terminals to prevent guests from starting one up and doing something you are not expecting or watching. When you start a shared terminal as a host, you can specify whether it should be read-only or read/write. When the terminal is read/write, everyone can type in the terminal including the host which makes it easy to intervene if a guest is doing something you do not like.

 

However, to be safe, you should only give read/write access to guests when you know they actually need it and stick with read-only terminals for scenarios where you just want the guest to see the output of any commands you run.

 

When signing in using a Microsoft backed school email address you may see a message saying "Need admin approval" when signing in. This is because Live Share requires read access to user information for its security features and your Azure AD tenant is set up to require “admin consent” for new applications accessing the contents of the directory.

 

Your AD admin would need to resolve this for you using the following information:

This would only need to be done once for anyone using Live Share. See here and here for details.

 

See also

 

Guest limitations

While there are currently some shortcomings guests will experience while using the features described above, collaboration session hosts retain the complete functionality of their tool of choice. See the following for more information:

 

Next steps

Check out these additional articles for more information.