skip to Main Content

My python code has yellow underlines under nearly everything
It underlines print but when I run it still shows.

Any help would be appreciated!

I tried to change the python intepriter but that didnt work and i also reinstalled the python extention. I also reset VScode settings.json file.

It still did not fix.

2

Answers


  1. Yellow underline are warnings, your code will still works. If the yellow space at the bottom of the page with "3.10.10" is your pyhton version, it might be because it wants you to update your Python.

    Login or Signup to reply.
  2. If you enable linting, some warnings will be prompted but it will not affect the normal operation of the code. Those are just some things that are code normative.

    Add the following setting in the settings.json to turn off linting:

        "python.linting.enabled": false,
    

    If you have additional linter extensions installed, you will need to turn off the setting individually or disable that extension.

    More about linting in vscode.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search