Visual Studio Codeのlaunch.jsonでPowerShellコマンドを実行する方法

  1. vscode の拡張機能で PowerShell(Microsoft 純正拡張機能) をインストールする
  2. launch.json で type に「PowerShell」、request に「launch」を設定する
  3. script に実行したいコマンドを設定

Pasted image 20250225173053.png

参考: How to run a command in Visual Studio Code with launch.json - Stack Overflow