我们可以使用Integrated Terminal
菜单中的View
特性在vscode中打开命令提示符。
我们甚至可以打开多个终端,如下所示:
有什么办法可以改变航站楼的名称吗?
我已经看过了集成终端文档,但我没有找到这样做的方法。
发布于 2017-08-17 21:31:50
按windows Ctrl + Shift + P和后面的类型:终端:重命名,您可以在那里更改终端名称/标题
发布于 2021-10-04 03:29:20
在v1.61中,可以使用变量设置终端名称。见发布说明中的终端自定义标题。
终端名称是与其关联的进程的传统名称。因此,很难区分它们。 现在,我们支持使用
terminal.integrated.tabs.title
和terminal.integrated.tabs.description
设置中描述的变量配置标题和描述,以帮助解决这个问题。 当前的默认值是:
{
"terminal.integrated.tabs.title": "${process}",
"terminal.integrated.tabs.description": "${task}${separator}${local}${separator}${cwdFolder}"
}
现有变量如下:
${cwd} - The terminal's current working directory
${cwdFolder} - The terminal's current working directory.
${workspaceFolder} - The workspace in which the terminal was launched.
${local} - Indicates a local terminal in a remote workspace.
${process} - The name of the terminal process.
${separator} - A conditional separator (" - ") that only shows when surrounded by variables with values or static text.
${sequence} - The name provided to xterm.js by the process.
${task} - Indicates this terminal is associated with a task.
看起来,${task}
变量就是您要寻找的对象。
发布于 2019-07-09 08:40:02
有时,插件会删除默认的键盘快捷方式绑定。
在键盘快捷键中查找"terminal.rename“,然后将键盘快捷方式编辑为您喜欢的快捷方式。
若要应用快捷方式,请在输入之前确保光标集中在编辑窗口的部分。不是在终点站。
https://stackoverflow.com/questions/42898299
复制相似问题