天天看點

在Ubuntu中安裝Visual Studio Code在Ubuntu中安裝Visual Studio Code

在Ubuntu中安裝Visual Studio Code在Ubuntu中安裝Visual Studio Code

<a target="_blank"></a>

開始之前,首先需要安裝ubuntu make。雖然ubuntu make存在ubuntu15.04官方庫中,但是需要ubuntu make 0.7以上版本才能安裝visual studio。是以,需要通過官方ppa更新到最新的ubuntu make。此ppa支援ubuntu 14.04, 14.10 和 15.04。

注意,僅支援64位版本。

打開終端,使用下列指令,通過官方ppa來安裝ubuntu make:

<code>sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make</code>

<code>sudo apt-get update</code>

<code>sudo apt-get install ubuntu-make</code>

安裝ubuntu make完後,接着使用下列指令安裝visual studio code:

<code>umake web visual-studio-code</code>

安裝過程中,将會詢問安裝路徑,如下圖:

在Ubuntu中安裝Visual Studio Code在Ubuntu中安裝Visual Studio Code

在抛出一堆要求和條件後,它會詢問你是否确認安裝visual studio code。輸入‘a’來确定:

在Ubuntu中安裝Visual Studio Code在Ubuntu中安裝Visual Studio Code

确定之後,安裝程式會開始下載下傳并安裝。安裝完成後,你可以發現visual studio code 圖示已經出現在了unity啟動器上。點選圖示開始運作!下圖是ubuntu 15.04 unity的截圖:

在Ubuntu中安裝Visual Studio Code在Ubuntu中安裝Visual Studio Code

解除安裝visual studio code,同樣使用ubuntu make指令。如下:

<code>umake web visual-studio-code --remove</code>

如果你不打算使用ubuntu make,也可以通過微軟官方下載下傳安裝檔案。

<a href="https://code.visualstudio.com/download" target="_blank">下載下傳visual studio code linux版</a>

怎樣!是不是超級簡單就可以安裝visual studio code,這都歸功于ubuntu make。我希望這篇文章能幫助到你。如果您有任何問題或建議,歡迎給我留言。

原文釋出時間:2015-05-11

本文來自雲栖合作夥伴“linux中國”

繼續閱讀