Ubuntu server安装vscode
时间: 2023-10-17 08:31:19 浏览: 160
在Ubuntu服务器上安装VSCode需要进行以下步骤:
1. 在服务器上安装SSH服务:
```
sudo apt-get install openssh-server
```
2. 安装VSCode:
- 下载VSCode的.deb安装包:
```
wget https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64
```
- 安装下载的.deb文件:
```
sudo dpkg -i download?build=stable&os=linux-deb-x64
```
3. 安装远程开发插件:
- 打开VSCode,在扩展面板中搜索并安装"Remote - SSH"插件
- 安装完成后,重新启动VSCode
4. 连接到远程服务器:
- 打开VSCode,点击左下角的绿色图标,选择"Remote-SSH:Connect to Host"
- 输入服务器的IP地址、用户名和密码进行连接
现在,您已经成功连接到Ubuntu服务器并安装了VSCode。您可以使用VSCode进行远程编辑和调试Linux代码了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [vscode-server.zip](https://download.csdn.net/download/u011119817/16818309)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [ubuntu上安装vscode,并远程开发与远程调试服务器代码](https://blog.csdn.net/u013171226/article/details/107680346)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文