Home > database >  Useless info erros in visual studio code
Useless info erros in visual studio code

Time:12-07

Something updated recently, and in my python files, vscode now shows over 100 infos. And puts tons of blue squiggly lines under my code. For example one of the infos is

Exactly one space required around assignment pylint(bad-whitespace)

How can I disable these?

Also, here are some photos that show my problem.

enter image description here

enter image description here

I have tried putting

"python.linting.flake8Args": ["--ignore=C"]

in the setting of vscode, but it doesn't work.

CodePudding user response:

Try a find replace with this Regex.

Find:

(\S )\s*=\s*

Replace:

$1 = 

There is one space at the end of replace. Adjust to take care of named parameters

CodePudding user response:

Sorry, but you are using pylint, you should take this to ignore the Convention type problem:

 "python.linting.pylintArgs": ["--disable=C"],
  • Related