海阔天空蓝

一个玩过n种运动的语音合成算法攻城狮

0%

vscode

VSCode 踩坑指南

VSCode 连接内网环境下的远程服务器

Version 1.54.3

  • Step 1 下载安装包,安装VS Code,无坑

  • Step 2 terminal 配置,settings里搜索shell:windows,然后选择想要的terminal,也可以在settings.json上编辑。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"terminal.integrated.profiles.windows": {
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell"
},
"Command Prompt": {
"path": [
"${env:windir}\\Sysnative\\cmd.exe",
"${env:windir}\\System32\\cmd.exe"
],
"args": [],
"icon": "terminal-cmd"
},
"gitBash": {
"path":"S:\\Git\\bin\\bash.exe"
}
},
"terminal.integrated.defaultProfile.windows": "gitBash",
  • Step 3 配置远程服务器

本地下载 Remote - SSH, Remote - SSH: Editing Configuration Files 两个插件

远程下载和配置暂时掠过,即可完成ssh配置

The SSH installation couldn’t be found 但是git bash 有安装了ssh。所以需要在vs code 配置ssh隧道

​ “remote.SSH.path”: “ssh.exe的路径”

  • Step 4 配置远程Debug断点调试代码

Mac/Linux: Add “pythonPath”: “python3”into.vscode/launch.json` to the same place 注意每一个debug的项目都要重复添加一次。

总算是解决了VS Code 远程连接的各种坑,希望对大家有用。

其他BUGS

  • BUG 1: Setting up SSH Host xxxx: Downloading VS Code Server locally

一直卡在”正在打开远程”的状态