
Install the vscode eslint plug-in, which can automatically detect code that does not comply with the specification. It will take effect after restarting the software.

As shown below, you can also prompt an error when the mouse passes over it

##Then open the file->Preferences-> ;Settings, search for eslint; we found that the automatic repair function is turned off by default. We enter the automatically repaired json configuration data in the user settings on the right, and the automatic repair function is turned on

Open the error page again and perform the save (ctrl s) operation. eslint errors will be automatically recovered.

Recommended related articles and tutorials:
vscode tutorial
The above is the detailed content of vscode enables quick viewing and repair of vue errors. 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