powershellintellisenseinteractivepsreadlinepowershell-7

How to disable suggestion while typing in powershell


While executing commands in PowerShell it's automatically suggesting texts

enter image description here

How can I disable these suggestions and also in future if I want to enable the suggestions how can I do it?


Solution

  • Use the Set-PSReadLineOption cmdlet:

    To disable all suggestions:

    Set-PSReadLineOption -PredictionSource None
    

    Enabling offers several options, depending on what source(s) should be used for completions: History, Plugin, or HistoryAndPlugin (the default).

    See this blog post for details.


    Note: