如何在Ubuntu18.04安装VScode
时间: 2023-10-25 20:06:52 浏览: 147
1. 打开终端(Ctrl + Alt + T)。
2. 输入以下命令以添加Microsoft GPG密钥:
```
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
sudo install -o root -g root -m 644 microsoft.asc.gpg /usr/share/keyrings/microsoft.asc.gpg
sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft.asc.gpg] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
```
3. 更新系统包列表:
```
sudo apt update
```
4. 安装VScode:
```
sudo apt install code
```
5. 安装完成后,您可以从应用程序菜单中启动VScode。
或者,您也可以在终端中输入以下命令来启动VScode:
```
code
```
相关问题
ubuntu18.04安装VScode
您可以按照以下步骤在 Ubuntu 18.04 上安装 Visual Studio Code:
1. 打开终端并更新软件包列表:
```
sudo apt update
```
2. 安装 curl:
```
sudo apt install curl
```
3. 导入 Microsoft 的 GPG 密钥:
```
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
```
4. 启用 Visual Studio Code 存储库:
```
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
```
5. 更新软件包列表:
```
sudo apt update
```
6. 安装 Visual Studio Code:
```
sudo apt install code
```
现在您已经成功在 Ubuntu 18.04 上安装了 Visual Studio Code。
ubuntu 18.04 安装 vscode
要在Ubuntu 18.04上安装VSCode,你可以按照以下步骤操作:
1. 打开终端(Ctrl+Alt+T)。
2. 添加Microsoft GPG密钥,使用以下命令:
```shell
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
```
3. 添加VSCode存储库到您的系统,使用以下命令:
```shell
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
```
4. 更新软件包列表,使用以下命令:
```shell
sudo apt update
```
5. 安装VSCode,使用以下命令:
```shell
sudo apt install code
```
完成以上步骤后,VSCode将会成功安装在你的Ubuntu 18.04系统上。你可以通过在终端中输入 `code` 命令来启动VSCode。
阅读全文
相关推荐














