Change Integrated Terminal title in vscode

拜拜、爱过 提交于 2019-12-22 04:11:55

问题


We can open command prompt in vscode by using the Integrated Terminal feature in View menu.

We can even open multiple terminals as shown below:

Is there any way I can change the title of the terminal ?

  • 1: cmd.exe will be build terminal
  • 2: cmd.exe will be watch terminal

I have gone through the integrated terminal documentation but I didn't find a way to do that.


回答1:


Press in windows Ctrl + Shift + P and after type: Terminal: Rename, there you can change the terminal name/title




回答2:


In v1.41 Insiders' Build there is a new command which can be used like so:

{
  "key": "ctrl+t",
  "command": "workbench.action.terminal.renameWithArg",
  "args": {
      "name": "remote"
}

if you have some frequently used name, like "remote" or "build" that you use often.




回答3:


Sometimes, plugins will remove default keyboard shortcut bindings.

Look for "terminal.rename" in keyboard shortcuts then edit the keyboard shortcut to your preferred shortcut.

To apply your shortcut, make sure your cursor is focus in edit part of the window before you key in. Not at the terminal part.



来源:https://stackoverflow.com/questions/42898299/change-integrated-terminal-title-in-vscode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!