Skip to content

Built-in completion menu bug in Windows PowerShell 5.1

Tip

  • PSCompletions uses 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 PSCompletions instead 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 -a or --a, and then press Tab to trigger autocompletion.