Ubuntu安装VS Code

在 Ubuntu 中安装 VSCode
如果想要通过 ubuntu 安装 vscode 有两种方式,可以通过应用中心下载,也可以通过安装包下载,以及指令安装。

方式一:
首先在 ubuntu 桌面左侧中找到 Ubuntu SoftWare 打开,搜索 Visual Studio Code

Ubuntu安装VS Code_第1张图片

Ubuntu安装VS Code_第2张图片

直接安装就行了,在所需的文件夹下 输入 code即可启动

方式二:
以 sudo 用户身份运行下面的命令,依赖软件:

sudo apt install software-properties-common apt-transport-https wget

使用 wget 命令插入 Microsoft GPG key :

wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add

启用 Visual Studio Code 源仓库,输入:

sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"

一旦 apt 软件源被启用,安装 Visual Studio Code 软件包:

sudo apt install code

安装完成后,在所需的文件夹下 输入 code

你可能感兴趣的:(Ubuntu,ubuntu,linux)