Home >Development Tools >VSCode >What should I do if vscode automatically completes commas when saving and reports an error? Brief analysis of solutions
vscode will automatically complete commas at the end of some codes when saving, but this will report an error in some cases. How to solve such a problem? The following article will share a solution, I hope it will be helpful to everyone!
Question:
Sometimes vscode will automatically complete commas at the end of some codes when saving. But this will cause an error in eslint strict mode! [Recommended learning: "vscode tutorial"]
Solution:
Add ## in setting.json #"trailingComma": "none"
For more programming-related knowledge, please visit:
Introduction to Programming! !
The above is the detailed content of What should I do if vscode automatically completes commas when saving and reports an error? Brief analysis of solutions. For more information, please follow other related articles on the PHP Chinese website!