使用VSCode编写Stylus的时候出现expected "indent", got "eos"错误,查询后发现是tab制表符(\t)和空格(' ')混用了,导致stylus无法正常编译,网上查询的解决方法是Editor: insert spaces设为true,而将Editor:detect Indentation设为false,设置后发现无法解决问题,经实测将两者都设为false可以解决。

文件-》首选项-》设置-》搜索indent则可以出现上述两个选项。

此外,建议打开Editor: Render Whitespace,直接搜索出现,选择all可以看到所有的缩进都会有标志识别,不会弄混空格和制表符。

 

 

Logo

前往低代码交流专区

更多推荐