In the file & gt; > > > Preferences Settings> > > > > Search for eslint
* in Settings. Json and add the following code to the outer braces.
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"eslint.autoFixOnSave" : true,
},
After the file is saved, you can fix the code automatically.
Read More:
- Vscode automatically formats the code when an error is reported
- How to make eclipse after the program is modified, click run to automatically save it.
- Keras saves save() and save in the model_ weights()
- Vscode development Vue project eslint check error
- Vscode error parsing error: invalid ecmaVersion.eslint ‘import’
- Solution to prompt “cannot find module ‘eslint config defaults / configurations / eslint’” when submitting with Git
- Win10 starts infinite loop auto repair, and the repair fails
- Solve the problem that Windows 7 cannot be updated automatically_ Prompt error code 80246008
- UE4 cannot save the asset. The asset uasset failed to save
- Error reporting of eslint in webstorm
- Mybatis-plus automatically generates code error [Solved]
- [salesforce] prompt error deploying or retrieving source when vscode pulls the code
- Repair connection: an internal error has occurred in windowsserver2016
- [Problem] When installing the installation package, it appears: ipersistfile save failed with error code “0×80070005
- Error in adding jshint plug-in to vscode
- Chinese garbled code when vscode calls CMD to run C / C + +
- Vscode code block / full text collapse / expand shortcut
- IDEA报Unable to save settings: Failed to save settings. Please restart IntelliJ IDEA
- How to save big data in Oracle to CLOB