官术网_书友最值得收藏!

How to install Visual Studio Code on Linux

We are now going to explain how easy and fast it is to install Visual Studio Code on Linux. One of the most popular Linux distributions, Ubuntu 16.04, will serve as an example.

If you do not have a physical or virtual installation of Linux Ubuntu available, you can easily install it in Azure for trying out Visual Studio Code and understanding the various ASP.NET Core 2.0 examples, and then connect via Microsoft Remote Desktop app to it.

In this case, select the Linux Ubuntu 16.04 LTS image from the Azure Marketplace and create a new Linux Ubuntu VM in Azure. Leave all of the default options, then configure it to allow remote desktop connections (install compatible desktop, install xrdp, open port 3389, and more):

Let's see how to install Visual Studio Code on Linux Ubuntu:

  1. First, download the Linux Ubuntu install .deb package (64-bit) from https://go.microsoft.com/fwlink/?LinkID=760868:
  1. Open a new Terminal window in Ubuntu.
  2. Install the downloaded package via sudo dpkg -i <file>.deb.
  3. Then, enter sudo apt-get install -f.
  4. Set Visual Studio Code as your default text file editor by typing the command xdg-mime default code.desktop text/plain.

The installation will begin and automatically install the APT repository and signing key for enabling automatic package updates, as well as Visual Studio Code:

You can also manually install the repository and signing key, update the package cache, and then finally start the Visual Studio Code package installation, as follows:

  1. Open a new Terminal window in Ubuntu:
      curl https://packages.microsoft.com/keys/microsoft.asc | gpg --
dearmor>microsoft.gpg
      sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
      sudo sh -c 'echo "deb [arch=amd64]
https://packages.microsoft.com/repos/vscode stable main" >
/etc/apt/sources.list.d/vscode.list'
      sudo apt-get update
      sudo apt-get install code
  1. Set Visual Studio Code as your default text file editor by typing the command xdg-mime default code.desktop text/plain.

For more information and details on how to install Visual Studio Code on other Linux distributions such as RHEL, Fedora, CentOS, openSUSE, SLE, or others, please go to https://code.visualstudio.com/docs/setup/linux.

主站蜘蛛池模板: 丰顺县| 桐柏县| 井冈山市| 北辰区| 苗栗市| 凤山市| 阳西县| 广饶县| 富裕县| 兴隆县| 蒲城县| 峨眉山市| 珲春市| 运城市| 克拉玛依市| 峨边| 麻栗坡县| 郑州市| 云林县| 安图县| 周口市| 涿州市| 忻城县| 礼泉县| 长岭县| 泰安市| 江安县| 浏阳市| 丹凤县| 绥中县| 松滋市| 岳阳县| 遵义市| 巴青县| 延安市| 扎囊县| 汉阴县| 肇州县| 巢湖市| 新余市| 宝丰县|