はじめに
Visual Studio Code v1.9 未満だった当時、Windows環境でデフォルト端末がcmd.exeだった為PowerShellに変更した。
Visual Studio Code v1.9 から PowerShell がデフォルト端末に変更されました。
https://github.com/ayatokura/JP-VSCode-Docs/blob/master/release-notes/v1_9_ja.md#その他-other
設定
[ファイル] => [基本設定] => [ユーザー設定]を選択
settings.json
に1行追記
"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe"
settings.json
{
"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe"
}
備考
Windows10(64bit)環境でPowerShellのパスをWindows\sysnative
ではなくWindows\System32
に設定しても動作するが、PSReadline モジュールを読み込めません。コンソールは PSReadline なしで実行されています。
と毎回起動時に出てくる。