1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

VS CodeベースのエディタでPowerShell 7を使う

1
Posted at

WindowsでVS Codeをインストールした場合,デフォルトでは古いPowerShell 5が使われるが,こいつはマルチバイト文字をCP932で受けるなどのふざけた振る舞いをする.したがってPowerShell 7に切り替えるべきである.そのためPowerShell 7のインストールとVS Codeへの設定方法を記しておく.

PowerShell 7のインストール:

winget search --id Microsoft.PowerShell
winget install --id Microsoft.PowerShell --source winget

VS Codeのデフォルトターミナルを変更:

{
  "workbench.secondarySideBar.defaultVisibility": "hidden",
  "workbench.startupEditor": "none",
  "workbench.editor.enablePreview": false,

  "terminal.integrated.profiles.windows": {
    "PowerShell7": {
      "path": "C:\\Program Files\\PowerShell\\7\\pwsh.exe",
      "icon": "terminal-powershell"
    }
  },
  "terminal.integrated.defaultProfile.windows": "PowerShell7"
}

そもそもPowerShellを使うのをやめるべきである.

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?