[关闭]
@zhongdao 2022-05-09T11:05:19.000000Z 字数 1847 阅读 1393

vscode reomote 安装使用

未分类


可以关注这些链接内容:
官方ssh远程开发教程
https://code.visualstudio.com/docs/remote/ssh-tutorial

Installation - Visual Studio Code on Linux
https://code.visualstudio.com/docs/setup/linux

VS Code Remote Development
https://code.visualstudio.com/docs/remote/remote-overview

Remote Development using SSH
https://code.visualstudio.com/docs/remote/ssh

install on ubuntu

Debian and Ubuntu based distributions
The easiest way to install Visual Studio Code for Debian/Ubuntu based distributions is to download and install the .deb package (64-bit), either through the graphical software center if it's available, or through the command line with:

  1. sudo apt install ./<file>.deb
  2. # If you're on an older Linux distribution, you will need to run this instead:
  3. # sudo dpkg -i <file>.deb
  4. # sudo apt-get install -f # Install dependencies

Installing the .deb package will automatically install the apt repository and signing key to enable auto-updating using the system's package manager. Note that 32-bit and .tar.gz binaries are also available on the VS Code download page.

The repository and key can also be installed manually with the following script:

  1. curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
  2. sudo install -o root -g root -m 644 packages.microsoft.gpg /usr/share/keyrings/
  3. sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'

Then update the package cache and install the package using:

  1. sudo apt-get install apt-transport-https
  2. sudo apt-get update
  3. sudo apt-get install code # or code-insiders

vscode golang 开发环境搭建

远程golang语言服务器

https://www.jianshu.com/p/3c6832d33afd

免密登录

https://blog.csdn.net/u010417914/article/details/96918562

将 win10 机器上

/User/Junli/.ssh/id_rsa.pub

用winscp 复制到 ssh server 的 /root/.ssh/ 下

  1. root@zhangjiakou1:~/.ssh# cat id_rsa.pub >> authorized_keys

关闭代码自动保存

  1. "[go]": {
  2. "editor.formatOnSave": true,
  3. "editor.codeActionsOnSave": {
  4. "source.fixAll": true,
  5. "source.organizeImports": true
  6. }
  7. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注