我不知道什么是Scilab,从未见过,从未使用过。但是,对于VScode终端设置,这是Microsoft提供的有据可查的东西...
...,并且在Stackoverflow上已经讨论过。
As per the accepted answer shows:
通过安装一个扩展名:
找到一个名为Shell launcher的扩展并安装它。重新加载VS代码如果需要或在完成所有步骤之后。
转到文件->首选项->设置,这将打开settings.json文件,然后将其插入(您可以将其编辑到心的内容):
代码:
"shellLauncher.shells.windows": [
{
"shell": "C:\\Windows\\<sysnative>\\cmd.exe",
"label": "cmd"
},
{
"shell": "C:\\Windows\\<sysnative>\\WindowsPowerShell\\v1.0\\powershell.exe",
"label": "PowerShell"
},
{
"shell": "C:\\Program Files\\Git\\bin\\bash.exe",
"label": "Git bash"
},
{
"shell": "C:\\Windows\\<sysnative>\\bash.exe",
"label": "WSL Bash"
}
]
更新
我只是在Youtube for Scilab上进行了查看,它具有自己的完全独立的GUI控制台。您不能在VScode中运行GUI控制台,而只能在类似于终端的控制台中运行,因此,如果它确实具有类似cmd.exe,类似bash的控制台,则适用上述方法。