美文网首页
VS Code黑魔法

VS Code黑魔法

作者: YjjTT | 来源:发表于2018-08-24 18:47 被阅读0次

VS Live Share 代码共享插件

VS Live Share 是VScode的一个插件,前几天偶然发现该插件,然后就和同事一起使用了下,发现新大陆.


%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7%202018-08-24%20%E4%B8%8B%E5%8D%886.18.15.png

下面是介绍:

Microsoft Visual Studio Live Share

Visual Studio Live Share enables you to achieve greater confidence at speed by streamlining collaborative editing, debugging, and more in real-time during development. You get real-time sharing in tools you love. You can share the full context of your code, collaboratively edit while still navigating files independently, securely share local servers, and even collaboratively debug while still retaining the ability to inspect on your own.

Note: Visual Studio Live Share is currently in preview. User experience and features are not final.

Installation

Getting going with the extension for Visual Studio Code is simple. Just follow these steps:

  1. Install Visual Studio Code for Windows (7, 8.1, or 10) or macOS (Sierra+ only), or 64-bit Linux (see details).
  2. Download and install the Visual Studio Live Share extension for Visual Studio Code.
  3. Wait for the extension to download and reload when prompted.
  4. Wait for Live Share to finish installing dependencies.
  5. The "Sign in" and "Share" status bar items will appear once done.

Linux users: You may see a notification about installing missing libraries:

  1. If you'd prefer not to run an automated script, you may install the libraries manually.
  2. To auto-install, click "Install" in the notification.
  3. A terminal window will appear and run a script. Your OS will ask you to enter your admin (sudo) password for the run package install commands. While the script is in the extension for security reasons, you can review the latest script contents here.
  4. Restart VS Code when done.

By downloading and using Visual Studio Live Share, you agree to the license terms and privacy statement. See troubeshooting if you run into problems.

Share

After installing, follow these steps to start a collaboration session and share a folder from VS Code:

  1. Click the "Sign in" status bar item.
  2. A browser window will appear where you should then sign in.
  3. Close the browser tab when done. If VS Code still does not show that you are signed in, see here.
  4. Open a folder you want to share.
  5. Click the "Share" status bar item and an invite link will be automatically copied to your clipboard.
  6. Send the link to someone!

Join

Joining a collaboration session is easy! After installing, follow these steps:

  1. Click the "Sign in" status bar item.
  2. A browser window will appear where you should then sign in.
  3. Close the browser tab when done. If VS Code still does not show that you are signed in, see here.
  4. Open (or re-open) the invite web page using the invite link your colleague sent you.
  5. You should be notified that your browser wants to launch VS Code.
  6. After allowing this to happen, VS Code will start and automatically join the collaboration session.
  7. That's it! VS Code will then join the collaboration session!

下面配图介绍使用方法

  • 扩展里面搜索VS Live Share 安装

  • 找到下图的Share


    image-20180824183902777.png
  • 点击Share会提示登录


    image-20180824183951905.png
  • 登录成功后(我是Github)


    image-20180824184040265.png
  • 点击用户上面会弹出选项,选择第一个复制邀请链接


    image-20180824184141230.png
  • 然后让你需要共享的那个人一样的操作,到上面的一步,点击第四项

  • 退出后,在点击用户出现下面的样子,点击第二个加入你发他的邀请链接就可以了


    %E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7%202018-08-24%20%E4%B8%8B%E5%8D%886.44.15.png

接下来就可以尽情的玩耍了~~~

相关文章

网友评论

      本文标题:VS Code黑魔法

      本文链接:https://www.haomeiwen.com/subject/unyiiftx.html