r/learnpython • u/SirHades256 • 24d 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!
14
u/zanfar 24d ago
Python predicts
No, it doesn't. At best, your IDE is offering suggestions. This has nothing to do with Python.
Does anyone know how to fix this?
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.
0
u/SirHades256 24d ago
I'm using Visual Studio Code
7
u/RedSkyNL 24d ago
In the bottom right you have a icon that looks like 3 people. Click it and turn off the couple of suggestions there. Also make sure you don't (accidentally) have extensions like Ruff enabled.
1
u/SirHades256 24d ago
It worked! Thank you; I really appreciate it! It was getting annoying there for a second...
1
u/pachura3 24d 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
1
u/SigridFischer42 24d 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 24d ago
Try starting with IDLE instead of VS Code if you don't want its IDE features. IDLE comes with the standard Python distribution.
1
-3
24d ago
[removed] — view removed comment
1
u/SirHades256 24d ago
I know how to use one, though?
0
24d ago
[removed] — view removed comment
3
u/SirHades256 24d ago
I got it figured out! I don't need you bothering me 😄
I started today; what did you expect, lol
-2
24d ago
[removed] — view removed comment
3
u/SirHades256 24d ago
I started with Python itself and a tool to edit the code (Visual Studio Code). What do you mean by the “wrong thing?”
-1
23d ago
[removed] — view removed comment
1
u/questioningeveryth 21d ago
Were you born knowing how to use programs or what? So uptight lol
1
21d ago
[removed] — view removed comment
1
u/questioningeveryth 20d ago
That is true. Unfortunately, from what I have noticed, a lot of schools just kinda throw you in without building a proper foundation first. Atleast in my experience and what I have seen from some others around.
10
u/TuxWrangler 24d 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.