powershellvisual-studio-codeterminaltab-completion

Tab Completion in VS Code Terminal doesn't complete the highlighted command


When I start typing a command into the integrated pwsh terminal prompt in Visual Studio Code, auto-complete suggests some ideas.

Example:

But when I hit TAB which is my intuition to accept the suggestion, nothing happens.

How do I get the TAB key to accept the suggested command?


Solution

  • This is detailed in the Using predictors in PSReadLine documentation:

    • AcceptSuggestion is built within ForwardChar, which is bound to RightArrow by default