今天想为VS Code终端添加多个可选线,可是看了下,貌似只能设置一个,这一个为默认的终端,可切换。


通过编辑器的settings,可以看出,这里是不支持设置多个默认终端的。在添加的时候,是直接出现一个终端,而不是选择后出现, 也说明这只能设置一个终端,且为默认终端,但是可以更改这个终端的类型,可以选择“Select Default Shell”进行修改,也可以直接修改settings:
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",----------------powershell
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",-----------cmd
"terminal.integrated.shell.windows": "D:\\soft\\git\\bin\\bash.exe",-----------------git
如果觉得文章写得还行,请点个赞。如果想与我进一步交流,可以关注我的公众号或者加我的微信。


网友评论