Built-in completion menu bug in Windows PowerShell 5.1
Tip
PSCompletionsuses the completion menu provided by the module itself by default, which is not affected by this bug.- Unless you switch to PowerShell's built-in completion menu by running
psc menu config enable_menu 0.
In Windows PowerShell 5.1, due to a bug, the built-in completion menu is not triggered when using
-or--.Solutions:
- Use the completion menu provided by
PSCompletionsinstead of PowerShell's built-in completion menu. - Switch to PowerShell (pwsh), as this bug was fixed in PowerShell 6.0.
- Alternatively, add a character after
-or--, such as-aor--a, and then pressTabto trigger autocompletion.
- Use the completion menu provided by