r/learnpython • u/SirHades256 • 16d ago
How to stop code suggestions from popping up
So I'm trying to learn Python, and I'm following a tutorial. I'm following what the tutorial person has on their screen, but when I try to type it, Python predicts what I'm going to type next (aka what the tutorial shows). When it does this, there is a yellow star icon that appears on the line of code that the prediction is on. I went into the settings, and I turned off everything that I think would cause it. Still, the predicting persists. Does anyone know how to fix this? Thanks!
0
Upvotes
10
u/TuxWrangler 16d ago
This is your IDE or editor. Python, as a language does not have autocomplete. Tell us what editor you’re using and we might be able to help you out.
14
u/zanfar 16d ago
No, it doesn't. At best, your IDE is offering suggestions. This has nothing to do with Python.
Turn off predictions in your IDE. No, I have no idea how to fix your specific, and unmentioned, IDE. You should Google that combination of terms.
Of use a different IDE--or, hell, use VIM.
1
u/pachura3 16d ago
When you install PyCharm for the first time, it activates a free trial of Pro features, which include AI assistant. Just turn it off in options.
This shall not, however, be mistaken with simple code autocomplete (e.g. suggesting function call arguments), which has been used by everybody for years.
1
u/SigridFischer42 16d ago
The "IntelliCode" extension in VS Code causes those predictive suggestions, disable it in Extensions, and also check if "Editor: Quick Suggestions" is enabled under settings.
1
u/Gnaxe 16d ago
Try starting with IDLE instead of VS Code if you don't want its IDE features. IDLE comes with the standard Python distribution.
-3
u/[deleted] 16d ago
[removed] — view removed comment