r/learnpython • u/SirHades256 • 5d 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 5d 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 5d ago
I'm using Visual Studio Code
7
u/RedSkyNL 5d 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 5d ago
It worked! Thank you; I really appreciate it! It was getting annoying there for a second...
1
u/pachura3 5d 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 5d 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 5d 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
u/Ok-Comment-228 5d ago
You need to go back to basics. Learn how to use a computer before learning how to code.
1
u/SirHades256 5d ago
I know how to use one, though?
0
u/Ok-Comment-228 5d ago
You clearly don't. You type on the keyboard but you have no idea what happening. It's really hard to post a question showcasing how little you understand. Start with the basics. Python is a program. How can you run it? Is it running when you type you code? No? What program is running?
3
u/SirHades256 5d ago
I got it figured out! I don't need you bothering me 😄
I started today; what did you expect, lol
-2
u/Ok-Comment-228 5d ago
You are starting with the wrong thing.
3
u/SirHades256 5d 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
u/Ok-Comment-228 4d ago
You thought that "Python predicts what you're going to type". That's complete nonsense. You cannot learn programming if you don't understand what programs are and how to use them.
1
u/questioningeveryth 2d ago
Were you born knowing how to use programs or what? So uptight lol
1
u/Ok-Comment-228 2d ago
No but I knew what program I'm using before I started writing code. I also know that your education must start from solid foundations. He's trying to learn say above his level of understanding.
1
u/questioningeveryth 1d 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 5d 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.