{"id":21845,"date":"2018-12-04T10:02:55","date_gmt":"2018-12-04T18:02:55","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/vcblog\/?p=21845"},"modified":"2019-02-18T17:47:32","modified_gmt":"2019-02-18T17:47:32","slug":"cppliveshare","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/cppblog\/cppliveshare\/","title":{"rendered":"Announcing Live Share for C++: Real-Time Sharing and Collaboration"},"content":{"rendered":"<p><span>C++ developers using Visual Studio 2019 <\/span><span>16.0 <\/span><span>Preview 1 or Visual Studio Code<\/span><span> can now use <\/span><a href=\"https:\/\/visualstudio.microsoft.com\/services\/live-share\/\"><span>Live Share<\/span><\/a><span>.<\/span> <span>With<\/span><span> Live Share<\/span> <span>you can share<\/span><span> the full context of your code<\/span><span>, enabling<\/span><span> collaborative<\/span><span> editing and debugging.<\/span><span>\u00a0<\/span><\/p>\n<h4>Collaborative Editing:<\/h4>\n<p><span>\u00a0<a href=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/01\/active1.png\"><img decoding=\"async\" width=\"1022\" height=\"413\" class=\"alignnone size-full wp-image-21855\" alt=\"\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/01\/active1.png\" \/><\/a><\/span><\/p>\n<h4>Collaborative Debugging:<span>\u00a0<\/span><\/h4>\n<p><span>\u00a0<a href=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/01\/sidebyside1.png\"><img decoding=\"async\" width=\"879\" height=\"378\" class=\"alignnone size-large wp-image-21865\" alt=\"\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/01\/sidebyside1.png\" \/><\/a><\/span><\/p>\n<p><span>In a Live Share session there is a host and a guest(s). The host of the session provides the guest with everything it needs to be productive; the guest doesn\u2019t need any of the source files locally. Furthermore, the guest doesn\u2019t need the right compiler, external dependencies, or even the same installed components. The guest even gets IntelliSense from the host!<\/span><\/p>\n<p><span>While in a C++ Live Share session, <\/span><span>you can use<\/span><span>:<\/span><span>\u00a0<\/span><\/p>\n<ul>\n<li><span>Member List<\/span><\/li>\n<li><span>Parameter Help<\/span><\/li>\n<li><span>Quick Info<\/span><\/li>\n<li><span>Debugging\/Breakpoints<\/span><\/li>\n<li><span>Find All References<\/span><\/li>\n<li><span>Go <\/span><span>To<\/span><span> Definition<\/span><\/li>\n<li><span>Symbol Search<\/span><span> (<\/span><span>Ctrl+T<\/span><span>)<\/span><\/li>\n<li><span>Reference Highlighting<\/span><\/li>\n<li><span>Diagnostics\/Errors\/Squiggles<\/span><\/li>\n<li><span>Completion<\/span><\/li>\n<\/ul>\n<h3><span>How to Install Live Share<\/span><span>\u00a0<\/span><\/h3>\n<p><span>Visual Studio 2019<\/span> <span>16.0 <\/span><span>Preview 1 <\/span><span>includes Live Share by default<\/span> <span>as part of the \u201cDesktop development with C++\u201d workload<\/span><span>.<\/span> <span>If<\/span><span> you are using Visual Studio Code, you&#8217;ll need to download the <\/span><a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=MS-vsliveshare.vsliveshare\"><span>Live Share Extension<\/span><\/a><span>.<\/span><\/p>\n<h3><span>Using Live Share<\/span><span> &#8211; Visual Studio<\/span><\/h3>\n<p><span>With<\/span> <span>Live Share installed<\/span><span>, Visual Studio and Visual Studio Code can act as the <\/span><span>host or the guest <\/span><span>of the Live Share session<\/span><span>. This gives your team a lot of flexibility. For example, you could have a Visual <\/span><span>Studio 2019 host on Windows that is sharing with a Visual Studio Code guest on Linux<\/span><span>.<\/span><\/p>\n<p><b><span>To start a Live Share <\/span><\/b><b><span>sessio<\/span><\/b><b><span>n<\/span><\/b><span> in Visual Studio, <\/span><span>click the Share button in the top right (or go to File &gt; Start Collaboration Session)<\/span><span>. This generates a link that you can share with<\/span><span> your <\/span><span>collaborators.<\/span><\/p>\n<p><span><a href=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/01\/button1.png\"><img decoding=\"async\" width=\"167\" height=\"35\" class=\"alignnone size-full wp-image-21875\" alt=\"\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/01\/button1.png\" \/><\/a><\/span><\/p>\n<p><b><span>To <\/span><\/b><b><span>join a session<\/span><\/b><span> in Visual Studio, simply go to <\/span><span>File &gt; Join Collaboration Session<\/span><span>\u2026<\/span><span> and enter <\/span><span>a collaboration session invite link.<\/span><span>\u00a0<\/span><span>\u00a0<\/span><\/p>\n<p><b><span>To end <\/span><\/b><b><span>a <\/span><\/b><b><span>session<\/span><\/b><span>, <\/span><span>select \u201cEnd Collaboration Session\u201d from the \u201cSharing\u201d dropdown:<\/span><\/p>\n<p><span><a href=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/01\/end1.png\"><img decoding=\"async\" width=\"347\" height=\"169\" class=\"alignnone size-full wp-image-21885\" alt=\"\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/01\/end1.png\" \/><\/a><\/span><\/p>\n<p><span>Please<\/span><span> visit the <\/span><a href=\"https:\/\/aka.ms\/vsls\"><span>Live Share home page<\/span><\/a> <span>for more information<\/span><span>, including videos.<\/span><span>\u00a0<\/span><\/p>\n<h3>Using Live Share &#8211; Visual Studio Code<\/h3>\n<p><strong>To start a Live Share session<\/strong>\u00a0 in Visual Studio Code, click the \u201cLive Share\u201d button in the bottom Command Palette.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/01\/vscode11.png\"><img decoding=\"async\" width=\"206\" height=\"28\" class=\"alignnone size-full wp-image-21895\" alt=\"\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/01\/vscode11.png\" \/><\/a><\/p>\n<p><span style=\"color: #000000;font-family: Calibri\">This will automatically copy the sharing link to your clipboard. The Command palette will now display an icon next to your name to indicate you are sharing. You\u2019ll also notice a new icon with an indication of how many participants have joined your session.<\/span><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/01\/vscode21.png\"><img decoding=\"async\" width=\"168\" height=\"29\" class=\"alignnone size-full wp-image-21905\" alt=\"\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/01\/vscode21.png\" \/><\/a><\/p>\n<p><span style=\"font-family: Calibri\"><span style=\"color: #000000\"><b>To join a session<\/b> in Visual Studio Code, click your name in the bottom Command Palette. A dropdown will appear, giving you the option to join a session. After clicking that option, you\u2019ll need to paste a Live Share session invite link.<\/span><\/span><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/01\/vscode31.png\"><img decoding=\"async\" width=\"847\" height=\"322\" class=\"alignnone size-full wp-image-21915\" alt=\"\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/01\/vscode31.png\" \/><\/a><\/p>\n<p><strong>To end <\/strong><strong>a <\/strong>\u00a0<strong>session<\/strong>\u00a0, click your name in the bottom Command Palette. A dropdown will appear, giving you the option to stop the session. (You\u2019ll also see the option to invite others if you need to recopy the session link.)<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/01\/vscode41.png\"><img decoding=\"async\" width=\"849\" height=\"314\" class=\"alignnone size-full wp-image-21925\" alt=\"\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/wp-content\/uploads\/sites\/9\/2019\/01\/vscode41.png\" \/><\/a><\/p>\n<p>For more information, please refer to the <a href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/liveshare\/use\/vscode\">Visual Studio Code Live Share documentation<\/a>.<\/p>\n<h3>Known Issues<\/h3>\n<p><span style=\"color: #000000;font-family: Calibri\">When sharing with a Visual Studio host to a Visual Studio guest, the Member List descriptions do not appear on the guest. This is a known issue and will be fixed in the next Preview.<\/span><\/p>\n<h3><span>Give Us Your Feedback<\/span><span>\u00a0<\/span><\/h3>\n<p><span>Live Share is <\/span><span>new for Visual Studio C++<\/span><span>, so we are eager to hear your feedback as we continue to improve your experience. <\/span><span>We can be reached via the comments below or via email <\/span><span>at <\/span><span>visualcpp@microsoft.com<\/span><span>.\u202fIf you encounter problems with <\/span><span>Live Share for C++ <\/span><span>or have a suggestion for Visual Studio please let us know <\/span><span>through<\/span><span>\u202f<\/span><span>the<\/span><span> Send F<\/span><span>eedback button in the top right of Visual Studio<\/span><span>, or\u202fvia\u202f<\/span><a href=\"https:\/\/developercommunity.visualstudio.com\/topics\/C%2B%2B.html\"><span>Developer Community<\/span><\/a><span>.\u202fYou can also find us on Twitter <\/span><a href=\"https:\/\/twitter.com\/visualc\"><span>@<\/span><span>VisualC<\/span><\/a><span>.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>C++ developers using Visual Studio 2019 16.0 Preview 1 or Visual Studio Code can now use Live Share. With Live Share you can share the full context of your code, enabling collaborative editing and debugging.\u00a0 Collaborative Editing: \u00a0 Collaborative Debugging:\u00a0 \u00a0 In a Live Share session there is a host and a guest(s). The host [&hellip;]<\/p>\n","protected":false},"author":329,"featured_media":35994,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[270,230],"tags":[],"class_list":["post-21845","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-announcement","category-new-feature"],"acf":[],"blog_post_summary":"<p>C++ developers using Visual Studio 2019 16.0 Preview 1 or Visual Studio Code can now use Live Share. With Live Share you can share the full context of your code, enabling collaborative editing and debugging.\u00a0 Collaborative Editing: \u00a0 Collaborative Debugging:\u00a0 \u00a0 In a Live Share session there is a host and a guest(s). The host [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/21845","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/users\/329"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/comments?post=21845"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/posts\/21845\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/media\/35994"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/media?parent=21845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/categories?post=21845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/cppblog\/wp-json\/wp\/v2\/tags?post=21845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}