我在Windows 10上安装了Ubuntu应用程序,并希望将其作为VS Code的终端使用。我发现VS Code自动检测到像Git Bash、PowerShell、Cmd.exe这样的选项,并提供使用它们作为终端的选项。但我想使用Ubuntu,这可行吗?
我在Windows 10上安装了Ubuntu应用程序,并希望将其作为VS Code的终端使用。我发现VS Code自动检测到像Git Bash、PowerShell、Cmd.exe这样的选项,并提供使用它们作为终端的选项。但我想使用Ubuntu,这可行吗?
wslconfig /setdefault Ubuntu
即可。"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\bash.exe"
在Preferences->settings中。上述代码覆盖了默认设置。