ISE and Windows PowerShell 5.1 are feeling old, but VS Code hasn't been a comfortable replacement for PowerShell. I like it for other work. Are there settings that make it feel simpler, or other editors worth trying?
What are you using instead of PowerShell ISE?
Answers
Try the ISE mode in VS Code before giving up on it. With the PowerShell extension installed, look for the ISE mode command in the command palette. It adjusts the layout and keybindings to make the transition less jarring.
You don't have to adopt the whole folder and project workflow either. Open a new untitled file, write the script, and save it when you're ready. You can also hide panels you don't use to keep the window less busy.
Reply to this answer
For something closer to the lightweight ISE experience, take a look at ISEberg. It's an alternative aimed at that style of PowerShell editing, so it may be a better fit if VS Code feels like too much editor for quick scripts.
Reply to this answer
What part of VS Code is getting in your way? The fix depends a lot on whether it's the layout, syntax colors, diagnostics, or IntelliSense and debugging losing their connection to the PowerShell session.
For diagnostics, be careful with powershell.scriptAnalysis.enable. Turning it off disables script analysis altogether, not just the warning recommendations. If you still want error checking, look at configuring the analyzer rules rather than switching analysis off wholesale.
c.51!gimbalbadge:
Syntax highlighting is a separate frustration for some people, so changing analyzer settings won't necessarily address that part.
Reply to this answer
PowerShell Studio is another option if you want a more full-featured IDE rather than a stripped-down editor. It has debugging tools, script packaging as executables, and a GUI builder. That's probably more than you need for a handful of small scripts, but useful if those features matter to you.
Reply to this answer
You could use a general text editor alongside a PowerShell console. Sublime Text is one option if you care more about a tidy editing layout than a dedicated PowerShell IDE. It supports split panes, rearranging tabs, and viewing different parts of a file side by side.
Also, moving editors doesn't have to be all or nothing. ISE can still be handy on Windows machines where it's available, while you use another editor elsewhere.
Reply to this answer
Add your answer
Answers are reviewed before publication.
q.6~brindlepulley:
That helps with the layout, though it won't necessarily fix problems with highlighting or the PowerShell extension itself.