首先: 安装这两个插件   Vue Syntax Highlight    和    stylus

1.按住 ctrl + shift + p

2.输入:install Package

3.输入: Vue Syntax Highlight     /  输入: stylus

4.重新打开.vue的文件就可以了

 

安装完毕后:这里还有一个小点要注意,我看很多网友,都说 要在vue  的style 标签中 这样写: <style scoped lang="stylus" type="text/stylus">  

但经过测是,这样写 在我的 sublime 中,并不会高亮, 可能是 版本 不一样的问题。解决方法就是  去除 style标签中的 type="text/stylus" 就好了。

效果如下:

加了 type="text/stylus"

vue和stylus在subline中显示高亮

不加 type="text/stylus"

vue和stylus在subline中显示高亮

 

有时候就是离成功只差那么一点点。

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-26
  • 2022-12-23
  • 2022-01-08
猜你喜欢
  • 2022-12-23
  • 2022-01-03
  • 2021-12-31
  • 2022-12-23
  • 2021-04-10
  • 2021-08-08
  • 2021-06-28
相关资源
相似解决方案