Home > Article > Development Tools > vscode often reports errors when editing js code
Problem:
Often errors are reported when editing js code, such as:
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!