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

0

u/dastylinrastan Apr 22 '26

The powershell extension has semantic highlighting that uses the engine, the textmate is just a fallback.

2

u/Thotaz Apr 22 '26

There's a reason why it's not enabled by default: It's broken AF. Also it's wrong to call textmate grammar a fallback because TextMate grammars are still the primary way: https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide

Semantic highlighting is an addition to syntax highlighting as described in the Syntax Highlight guide. Visual Studio Code uses TextMate grammars as the main tokenization engine.