其他分享
首页 > 其他分享> > 编辑jade时报Invalid indentation,you can use tabs or spaces but not both

编辑jade时报Invalid indentation,you can use tabs or spaces but not both

作者:互联网

使用atom编辑以后jade时报Invalid indentation,you can use tabs or spaces but not both

从字面理解是不能spaces tabs混用 删掉所有空位置 使用tabs不再报错 但是这样太费力气

设置atom 展示字符 atom->preferences->editor->show invisibles选中 ->tab type:hard

设置好之后把之前改掉的文件还原 就可以看见空格和tab的区别了

可以看出 其他都是tab 只有这个地方 使用了空格 所以修改掉就好了

标签:both,use,tabs,jade,Invalid,spaces,tab,atom
来源: https://blog.csdn.net/LS135957091/article/details/94434645