VS Code黑魔法

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:

  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!

下面配圖介紹使用方法

  • 擴(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

接下來(lái)就可以盡情的玩耍了~~~

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個(gè)濱河市,隨后出現(xiàn)的幾起案子鲸拥,更是在濱河造成了極大的恐慌,老刑警劉巖墩新,帶你破解...
    沈念sama閱讀 218,122評(píng)論 6 505
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場(chǎng)離奇詭異窟坐,居然都是意外死亡海渊,警方通過(guò)查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,070評(píng)論 3 395
  • 文/潘曉璐 我一進(jìn)店門哲鸳,熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái)臣疑,“玉大人,你說(shuō)我怎么就攤上這事徙菠⊙渡颍” “怎么了?”我有些...
    開(kāi)封第一講書(shū)人閱讀 164,491評(píng)論 0 354
  • 文/不壞的土叔 我叫張陵婿奔,是天一觀的道長(zhǎng)缺狠。 經(jīng)常有香客問(wèn)我,道長(zhǎng)萍摊,這世上最難降的妖魔是什么挤茄? 我笑而不...
    開(kāi)封第一講書(shū)人閱讀 58,636評(píng)論 1 293
  • 正文 為了忘掉前任,我火速辦了婚禮冰木,結(jié)果婚禮上穷劈,老公的妹妹穿的比我還像新娘笼恰。我一直安慰自己,他們只是感情好歇终,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,676評(píng)論 6 392
  • 文/花漫 我一把揭開(kāi)白布社证。 她就那樣靜靜地躺著,像睡著了一般评凝。 火紅的嫁衣襯著肌膚如雪追葡。 梳的紋絲不亂的頭發(fā)上,一...
    開(kāi)封第一講書(shū)人閱讀 51,541評(píng)論 1 305
  • 那天奕短,我揣著相機(jī)與錄音辽俗,去河邊找鬼。 笑死篡诽,一個(gè)胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的榴捡。 我是一名探鬼主播杈女,決...
    沈念sama閱讀 40,292評(píng)論 3 418
  • 文/蒼蘭香墨 我猛地睜開(kāi)眼,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼吊圾!你這毒婦竟也來(lái)了达椰?” 一聲冷哼從身側(cè)響起,我...
    開(kāi)封第一講書(shū)人閱讀 39,211評(píng)論 0 276
  • 序言:老撾萬(wàn)榮一對(duì)情侶失蹤项乒,失蹤者是張志新(化名)和其女友劉穎啰劲,沒(méi)想到半個(gè)月后,有當(dāng)?shù)厝嗽跇?shù)林里發(fā)現(xiàn)了一具尸體檀何,經(jīng)...
    沈念sama閱讀 45,655評(píng)論 1 314
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡蝇裤,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,846評(píng)論 3 336
  • 正文 我和宋清朗相戀三年,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了频鉴。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片栓辜。...
    茶點(diǎn)故事閱讀 39,965評(píng)論 1 348
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡,死狀恐怖垛孔,靈堂內(nèi)的尸體忽然破棺而出藕甩,到底是詐尸還是另有隱情,我是刑警寧澤周荐,帶...
    沈念sama閱讀 35,684評(píng)論 5 347
  • 正文 年R本政府宣布狭莱,位于F島的核電站,受9級(jí)特大地震影響概作,放射性物質(zhì)發(fā)生泄漏腋妙。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,295評(píng)論 3 329
  • 文/蒙蒙 一仆嗦、第九天 我趴在偏房一處隱蔽的房頂上張望辉阶。 院中可真熱鬧,春花似錦、人聲如沸谆甜。這莊子的主人今日做“春日...
    開(kāi)封第一講書(shū)人閱讀 31,894評(píng)論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)规辱。三九已至谆棺,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間罕袋,已是汗流浹背改淑。 一陣腳步聲響...
    開(kāi)封第一講書(shū)人閱讀 33,012評(píng)論 1 269
  • 我被黑心中介騙來(lái)泰國(guó)打工, 沒(méi)想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留浴讯,地道東北人朵夏。 一個(gè)月前我還...
    沈念sama閱讀 48,126評(píng)論 3 370
  • 正文 我出身青樓,卻偏偏與公主長(zhǎng)得像榆纽,于是被迫代替她去往敵國(guó)和親仰猖。 傳聞我的和親對(duì)象是個(gè)殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,914評(píng)論 2 355

推薦閱讀更多精彩內(nèi)容