PSScriptPad? How do I get this to work with VS Code?

So, I install PowerShell Pro Tools from the extensions manager in VS Code. I go to a tutorial on creating a WPF app using VS Code. (Building WPF Applications in Visual Studio Code with PowerShell) It says to create a new XAML file and click on the button to open the PSScriptPad app.

Vinyl scratch noise… No button. No PSScriptPad app. The tutorial says it’ll just “be there.” It wasn’t.

So I hunt the thing down, and download it from the website. It plops a naked executable in my Downloads folder, no indication of where I should put it or what I should do with it.

I created a Program Files folder for it, added it to the system PATH variable, rebooted. Ok, PS can find it ok. VS Code still has no button on xaml files.

I uninstalled Pro Tools, restarted VS Code and the PS window I started it from. Reinstalled Pro Tools. Discovered that Pro Tools does not start when VS Code starts but you have to open the pro tools stuff from the icon on the left. Then it starts.

No PSScriptPad button on xaml files.

How do I get this extension working properly with VS Code? If it is more complicated than simply clicking “Install” why is this not documented somewhere obvious?

Ah. Just found the sunset notice, that you are stopping support on this item.

I’ll see if it is possible to use PSScriptPad and VS Code with the extension separately, as they seem to not be integrated like various tutorials and dox claim.

1 Like

Based on the changelog for 2024.7.0, PSScriptPad was replaced with a more basic Forms Designer (and WPF support was also removed from the Visual Studio 2022 extension). I’m not entirely sure why, but it seems a lot of documentation hasn’t been updated to reflect said changes, unfortunately.