我要改名叫嘟嘟
我要改名叫嘟嘟

Reputation: 169

VS code, django project have template errors, how to avoid them?

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?

Upvotes: 1

Views: 714

Answers (2)

ItzMaxTV
ItzMaxTV

Reputation: 86

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

"html.validate.scripts": false,

Upvotes: 3

我要改名叫嘟嘟
我要改名叫嘟嘟

Reputation: 169

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

settings

Upvotes: 1

Related Questions