Home  >  Article  >  Development Tools  >  vscode enables quick viewing and repair of vue errors

vscode enables quick viewing and repair of vue errors

王林
王林Original
2020-01-10 13:54:164425browse

vscode enables quick viewing and repair of vue errors

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.

vscode enables quick viewing and repair of vue errors

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

vscode enables quick viewing and repair of vue errors

##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

vscode enables quick viewing and repair of vue errors

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

vscode enables quick viewing and repair of vue errors

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