Expected indentation of 4 spaces but found 1 tab解决方案(可能原因,亲测有效)
Expected indentation of 4 spaces but found 1 tab解决方案(可能原因,亲测有效)背景解决方案
背景
在使用vscode时想将tab的size设置为2,让html代码显得更加美观
根据网上的教程,需要settings中设置设置tab size为2
detect indentation设置为false,就是这一步导致的代码检测不通过
解决方案
detect indentation设置为true,insert spaces 设置为true
tab size根据描
原创
2021-03-30 18:39:47 ·
3425 阅读 ·
0 评论