r/PowerShell • • Apr 22 '26

Question PowerShell 5 vs. PowerShell 7

On Windows 11, is there any benefits for normal users to install PowerShell 7 and use it instead of PowerShell 5?

75 Upvotes

103 comments sorted by

View all comments

Show parent comment

13

u/Cadder Apr 22 '26

Granted, but I still miss/use ISE for troubleshooting/testing. Wish there was an ISE that ran 7 without the overhead of installing VScode

4

u/Murhawk013 Apr 22 '26

What’s the overhead of VS code? It’s a pretty lightweight tool that’s awesome lol

8

u/Alaknar Apr 22 '26

Wish there was an ISE that ran 7 without the overhead of installing VScode

https://vscodium.com/

16

u/Vern_Anderson Apr 22 '26

vscodium is just a fork of vscode without the telemtry it still acts and behaves like vscode. He's talking about the ISE lightweight IDE. I've used it since roughly 2009 and it's part of my work flow. vscode does not replace that. It's far too busy and bloated.

4

u/Alaknar Apr 22 '26

Without telemetry and such insane focus on AI.

As for "lightweight" - I don't know what the metric is, but on most of my devices, VS Code launches faster than ISE ever did.

If it's "too busy", just close whichever parts of the UI get in your way. You can literally replicate the ISE view 1:1 so I really don't know what you mean.

8

u/Thotaz Apr 22 '26

You can literally replicate the ISE view 1:1

Nope. The way VS code (and this VS code fork) handles syntax highlighting is fundamentally different from how the PowerShell console and ISE does it.
VS code uses the textmater grammar maintained here: https://github.com/PowerShell/EditorSyntax which is deeply flawed in several ways. An easy example to point to is the syntax highlighting for commands which uses a hardcoded list for the verbs in the verb-noun pattern: https://github.com/PowerShell/EditorSyntax/blob/main/PowerShellSyntax.tmLanguage#L533

This means that Do-Something will not be colored the same as Get-Something because do is not in that list.

ISE and the PowerShell console (PSReadline) uses the actual parser and the tokens returned by it to determine the color: https://github.com/PowerShell/PSReadLine/blob/master/PSReadLine/Render.cs#L1122

This means that ISE and the console will always show exactly what the language sees, whereas the textmate grammar is just an approximation that is like 70% accurate.

→ More replies (5)

4

u/Joly0 Apr 22 '26

There actually is a way to switch ISE to use Powershell 7 in the background. It works and I have used it in the past, but currently can't find it. It's basically 2 or 3 commands (iirc) and that's it. You can switch it back the same way

12

u/Thotaz Apr 22 '26

It's just Enter-PSHostProcess from ISE with an open pwsh instance.

1: Open pwsh and type in $pid
2: Open ISE and type in Enter-PSHostProcess <Insert PID from before>
3: Optionally you can disable the fancy output rendering which doesn't work properly in the ISE console: $PSStyle.OutputRendering='PlainText'

→ More replies (2)

2

u/olavrb Apr 22 '26 edited Apr 22 '26

There is also Zed ( https://zed.dev/ ) + PowerShell extension https://github.com/zed-extensions/powershell.

1

u/markdmac Apr 22 '26

Are these extensions for VS Code?

2

u/olavrb Apr 22 '26

No, Zed is a different editor. Rust based for speed.

1

u/markdmac Apr 22 '26

Thank you for clarifying that. Does Zed require installation or can it be executed from a shared location so it could be run on servers without having to install?

2

u/olavrb Apr 22 '26

I have no idea.

I think it's only available as exe installer ( https://github.com/zed-industries/zed ). But Scoop (the package manager) manages to extract it, so maybe you can copy whatever it does, and make it a "portable" install?

https://github.com/ScoopInstaller/Extras/blob/master/bucket%2Fzed.json

1

u/markdmac Apr 22 '26

Thank you again for your reply.

→ More replies (4)

1

u/BlackV Apr 22 '26

Rust based for speed.

For speed? Was that ever a goal for rust is rust faster?

1

u/olavrb Apr 22 '26

Faster than Electron at least.

1

u/BlackV Apr 22 '26

well... actually that is very valid :)

1

u/olavrb Apr 22 '26

One of the main objectives for Zed is speed, that's why I mentioned it.

1

u/SrBlackVoid Apr 23 '26

Rust is generally considered one of the fastest programming languages in terms of execution times, on par with C.

→ More replies (3)

2

u/Vern_Anderson Apr 22 '26 edited Apr 22 '26

Yes I'm transitioning to Linux on my old Windows 10 laptop and I'm still trying to find that suitable replacement for ISE. On the Linux side I've found Kate and Geany. They are lightweight IDEs but they take a ton of work to make them understand and run PowerShell scripts. They were probably built for bash and python. Luckily I still have some Windows 11 machines to devlope scripts on.

1

u/hackersarchangel Apr 23 '26

So at some point I wanted PS 7 everywhere and there is a way to mod the OS to just use 7. I think it’s a registry hack so of course do it at your own risk.

1

u/narcissisadmin Apr 23 '26

Granted, but I still miss/use ISE for troubleshooting/testing.

What am I missing with ISE? I couldn't wait to ditch it.

1

u/MonkeyNin May 21 '26

You can use nvim with the pwsh language server for completions, etc.

→ More replies (5)