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