javascript - vscode alt+shift+f formatted js code, what should I do if it fails the eslint code style check? . .
迷茫
迷茫 2017-06-17 09:16:22
0
2
1052

Code style verification is required, but once it is formatted a lot, it will fail the verification. Manual formatting every time is also very troublesome. Is there any good solution?

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(2)
左手右手慢动作

If you just want to wrap spaces and lines, you can directly adjust the settings of vscode. Anyway, I used to do this, but I lost it when I changed the computer settings. Now I have webstorm

小葫芦

Add "eslint.autoFixOnSave": true,

in your vscode user settings
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!