@zhongdao
2022-05-09T11:05:19.000000Z
字数 1847
阅读 1411
未分类
可以关注这些链接内容:
官方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
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:
sudo apt install ./<file>.deb
# If you're on an older Linux distribution, you will need to run this instead:
# sudo dpkg -i <file>.deb
# 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:
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -o root -g root -m 644 packages.microsoft.gpg /usr/share/keyrings/
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:
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install code # or code-insiders
远程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/ 下
root@zhangjiakou1:~/.ssh# cat id_rsa.pub >> authorized_keys
"[go]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.organizeImports": true
}
}