{
  "id": 14106354,
  "title": "PowerShell autocompletes on every keystroke: it's PSReadLine predictive IntelliSense",
  "url": "https://urgent.news/2026/10/13/powershell-autocompletes-on-every-keystroke-its-psreadline-predictive",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-13T03:23:42.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/milkyway008/powershell-autocompletes-on-every-keystroke-its-psreadline-predictive-intellisense-2nab"
  },
  "original_language": "en",
  "account": "The issue described involves PowerShell autocompleting on every keystroke, specifically due to the PSReadLine module. PSReadLine is the interactive line editor that comes with Windows PowerShell 5.1 and PowerShell 7+, and it's responsible for drawing the line and determining what happens when you press Tab. One of its features, introduced in version 2.2.6, is predictive IntelliSense, which is on by default and draws ghost text ahead of the cursor. This can make typing feel like it's being done for you, as the line keeps redrawing every time the guess changes, even without a Tab being pressed.\n\nTo resolve this issue, you can turn off predictive IntelliSense by setting PredictionSource to None using the command `Set-PSReadLineOption -PredictionSource None`. Alternatively, you can keep predictions but prefer the inline view by setting PredictionSource to History and PredictionViewStyle to InlineView using `Set-PSReadLineOption -PredictionSource History Set-PSReadLineOption -PredictionViewStyle InlineView`. These changes only apply to the current session, and to make them persistent, they need to be added to a profile script. If the issue persists, it may be due to a profile script or another module setting PSReadLine options, which can be checked by starting a new shell without a profile and verifying the PSReadLine version and path.",
  "summary": "Somebody on r/powershell described it like this: they built a Win32 Intune package, and right after that their PowerShell window started completing things on every keystroke. clear bought them a few seconds of calm, then it came straight back. Only closing the window and opening a fresh one actually held. I've run into this before. If I remember correctly, the package is almost never the culprit.…",
  "key_points": [
    "PowerShell autocompletes on every keystroke due to PSReadLine module.",
    "PSReadLine's predictive IntelliSense feature causes issue.",
    "Turn off predictive IntelliSense with Set-PSReadLineOption -PredictionSource None."
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}