Home  >  Article  >  Development Tools  >  vscode often reports errors when editing js code

vscode often reports errors when editing js code

王林
王林Original
2020-02-13 16:30:434197browse

vscode often reports errors when editing js code

Problem:

Often errors are reported when editing js code, such as:

vscode often reports errors when editing js code

Cause:

Due to the syntax checking problem of vcode itself.

Solution:

Add "javascript.validate.enable": false in the settings to disable the default js verification.

We can use third-party tools such as eslint or tslint to perform static checking.

Related recommendations: vscode tutorial

The above is the detailed content of vscode often reports errors when editing js code. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn