あなたは常にcmdを開きたい場合は、あなたはそれを構成するための設定を使用することができます。 docsから
:
正しくWindows上でシェルを設定するには、右の実行可能ファイルを探し、設定を更新する問題です。以下 は、共通のシェルの実行可能ファイルとそのデフォルトの場所のリストです:
// 64-bit cmd if available, otherwise 32-bit
"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\cmd.exe"
// 64-bit PowerShell if available, otherwise 32-bit
"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe"
// Git Bash
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe"
// Bash on Ubuntu (on Windows)
"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\bash.exe"
だけ時々開いてcmdをしたい場合は、単に新しいbashのターミナルを開いて、それにcmd
を走らせることができるかもしれません。
頻繁に使用する場合は、起動時に端末を選択できるように、thisまたはthisのような拡張子を使用することができます。
キーの割り当て:
[{
"key": "ctrl+shift+t",
"command": "shellLauncher.launch"
}]
セッティング:
{
"shellLauncher.shells.windows": [
{
"shell": "bash",
"args": [],
"label": "bash"
}, {
"shell": "cmd",
"args": [],
"label": "cmd"
}
]
}