Why is VSCode Ctrl+Space suggesting all words, vice methods/attributes?

26 Views Asked by At

Using Ctrl+Space while editing a python file triggers a suggestions popup. However, rather than linting the object and suggesting its methods/attributes, my popup shows me all words in the file (sorted alphabetically).

For instance, 10_000 and 10k are just words listed in my script, not methods attached to the model object's class: terrible suggestions from VSCode

Question: How can I limit these suggestions to the relevant methods/attributes?

It seems to me that Intellisense is treating my code as text, but I set the language mode to Python in VSCode.

0

There are 0 best solutions below