Home > Software engineering >  VS code, django project have template errors, how to avoid them?
VS code, django project have template errors, how to avoid them?

Time:06-07

I have use autopep8 to check my Python error & warning in VS Code, and config the "Go to Next Problem in Files" to fast jump to the next one.

go to next problem shortcut.

One day, I added one html file, found that the error list is long.

Found html warning.

I do not care the html's error, cuz it is just test files. How can I avoid them?

CodePudding user response:

I found one solution is that disable the HTML>Validate. Then the errors just from Python.

settings

CodePudding user response:

You could head to the settings.json and add this which will ignore validations in HTML files:

"html.validate.scripts": false,
  • Related