r/learnpython • • Oct 31 '26

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

22 comments sorted by

10

u/TuxWrangler Oct 31 '26

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.

1

u/SirHades256 Oct 31 '26

I'm using Visual Studio Code

14

u/zanfar Oct 31 '26

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 Oct 31 '26

I'm using Visual Studio Code

7

u/RedSkyNL Oct 31 '26

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 Oct 31 '26

It worked! Thank you; I really appreciate it! It was getting annoying there for a second...

1

u/pachura3 Oct 31 '26

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/SirHades256 Oct 31 '26

Good to know!

1

u/SigridFischer42 Oct 31 '26

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 Oct 31 '26

Try starting with IDLE instead of VS Code if you don't want its IDE features. IDLE comes with the standard Python distribution. 

1

u/TheRNGuy Nov 01 '26

You can just disable it in VS Code. 

1

u/Gnaxe Nov 01 '26

Yeah. Or, instead of figuring out how configure a complicated IDE, you could just use IDLE until you're ready.

-3

u/[deleted] Oct 31 '26

[removed] — view removed comment

1

u/SirHades256 Oct 31 '26

I know how to use one, though?

0

u/[deleted] Oct 31 '26

[removed] — view removed comment

3

u/SirHades256 Oct 31 '26

I got it figured out! I don't need you bothering me 😄

I started today; what did you expect, lol

-2

u/[deleted] Oct 31 '26

[removed] — view removed comment

3

u/SirHades256 Oct 31 '26

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/[deleted] Nov 01 '26

[removed] — view removed comment

1

u/questioningeveryth Nov 03 '26

Were you born knowing how to use programs or what? So uptight lol

1

u/[deleted] Nov 03 '26

[removed] — view removed comment

1

u/questioningeveryth 29d 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.