VS Live Share 代碼共享插件
VS Live Share 是VScode的一個(gè)插件,前幾天偶然發(fā)現(xiàn)該插件,然后就和同事一起使用了下,發(fā)現(xiàn)新大陸.
%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:
- Install Visual Studio Code for Windows (7, 8.1, or 10) or macOS (Sierra+ only), or 64-bit Linux (see details).
- Download and install the Visual Studio Live Share extension for Visual Studio Code.
- Wait for the extension to download and reload when prompted.
- Wait for Live Share to finish installing dependencies.
- The "Sign in" and "Share" status bar items will appear once done.
Linux users: You may see a notification about installing missing libraries:
- If you'd prefer not to run an automated script, you may install the libraries manually.
- To auto-install, click "Install" in the notification.
- 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.
- 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:
- Click the "Sign in" status bar item.
- A browser window will appear where you should then sign in.
- Close the browser tab when done. If VS Code still does not show that you are signed in, see here.
- Open a folder you want to share.
- Click the "Share" status bar item and an invite link will be automatically copied to your clipboard.
- Send the link to someone!
Join
Joining a collaboration session is easy! After installing, follow these steps:
- Click the "Sign in" status bar item.
- A browser window will appear where you should then sign in.
- Close the browser tab when done. If VS Code still does not show that you are signed in, see here.
- Open (or re-open) the invite web page using the invite link your colleague sent you.
- You should be notified that your browser wants to launch VS Code.
- After allowing this to happen, VS Code will start and automatically join the collaboration session.
- That's it! VS Code will then join the collaboration session!
下面配圖介紹使用方法
擴(kuò)展里面搜索VS Live Share 安裝
-
找到下圖的Share
image-20180824183902777.png -
點(diǎn)擊Share會(huì)提示登錄
image-20180824183951905.png -
登錄成功后(我是Github)
image-20180824184040265.png -
點(diǎn)擊用戶上面會(huì)彈出選項(xiàng),選擇第一個(gè)復(fù)制邀請(qǐng)鏈接
image-20180824184141230.png 然后讓你需要共享的那個(gè)人一樣的操作,到上面的一步,點(diǎn)擊第四項(xiàng)
-
退出后,在點(diǎn)擊用戶出現(xiàn)下面的樣子,點(diǎn)擊第二個(gè)加入你發(fā)他的邀請(qǐng)鏈接就可以了
%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