如何为VS Code SSH远程服务器配置其他Shell? [英] How do I configure a different shell for a VS Code SSH Remote?

查看:279
本文介绍了如何为VS Code SSH远程服务器配置其他Shell?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我连接到远程ssh时,如何更改用于VS Code集成终端的外壳?工作区?

推荐答案

您可以使用远程设置更改每个主机的外壳.为此,请在VS Code中打开远程工作区并运行Open Remote settings命令:

You can use remote setting to change the shell for each host. To do this, open the remote workspace in VS Code and run the Open Remote settings command:

设置terminal.integrated.shell.linux指向您的外壳并保存文件:

Set terminal.integrated.shell.linux to point to your shell and save the file:

"terminal.integrated.shell.linux": "/usr/bin/fish"

远程设置适用于您在给定主机上打开的所有工作区,但必须为您连接到的每个主机进行配置.

The remote settings apply to all workspaces you open on a given host, but must be configured for each host you connect to.

这篇关于如何为VS Code SSH远程服务器配置其他Shell?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆