LoginSignup
13
16

More than 5 years have passed since last update.

Visual Studio Codeの端末をPowerShellにする方法

Last updated at Posted at 2016-10-30

はじめに

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 なしで実行されています。と毎回起動時に出てくる。

13
16
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
16