如何为VS Code SSH远程服务器配置其他Shell?

编程入门 行业动态 更新时间:2024-10-09 00:44:00
本文介绍了如何为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?

本文发布于:2023-11-23 21:35:55,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1622922.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:何为   服务器配置   SSH   Code   Shell

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!