You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched all issues to ensure it has not already been reported.
Summary
Some keywords relate to each other, like "break" or "continue" inside a loop statement. It would be nice if these keywords got highlighted when placing the cursor on them just like it happens in VS and VScode when writing C# code. Here's an example:
This makes it easier to tell at a glance which loop I'm breaking out of in a nested loop scenario.
The scenarios that C# covers from my memory are:
1: Obvious pairs (if/else, try/catch/finally)
2: Return statements inside methods
3: Loops and flow control statements
All 3 seem like they would be pretty simple to handle with some AST analysis, however because PowerShell has loop labels extra care should be taken when determining what loop the flow control statements relate to.
Proposed Design
No response
The text was updated successfully, but these errors were encountered:
Prerequisites
Summary
Some keywords relate to each other, like "break" or "continue" inside a loop statement. It would be nice if these keywords got highlighted when placing the cursor on them just like it happens in VS and VScode when writing C# code. Here's an example:
This makes it easier to tell at a glance which loop I'm breaking out of in a nested loop scenario.
The scenarios that C# covers from my memory are:
1: Obvious pairs (if/else, try/catch/finally)
2: Return statements inside methods
3: Loops and flow control statements
All 3 seem like they would be pretty simple to handle with some AST analysis, however because PowerShell has loop labels extra care should be taken when determining what loop the flow control statements relate to.
Proposed Design
No response
The text was updated successfully, but these errors were encountered: