This is a negative side-effect of this:
https://community.slickedit.com/index.php/topic,19187.msgIf you don't apply that, the "
switch" keyword doesn't get formatted as a keyword. But if you do, you get another bad behavior:
Create a new PowerShell script, such as
foo.ps1.
Copy/paste the following code to define the parameters this script will take:
param(
[string]$Variable1,
[int]$Variable2,
[bool]$Variable3,
[switch]$Variable4,
[string]$Variable5,
[int]$Variable6,
[bool]$Variable7,
[switch]$Variable8
)
Now, one by one, go to the end of each parameter line and hit <enter>. Note how they all work correctly except for the
switch one.
Can we get this fixed?