Sass support for sublime text 3

拜拜、爱过 提交于 2019-12-24 04:27:09

问题


Is there a way to make autocomplete work for scss in the same way it works for css?
For example I type backg and then tab and it gives me background:; but not in scss files...

I have installed all packages to support scss... but there is only syntax highlighting that is working.


回答1:


You can install Emmet (formerly Zen Coding), it is an extremely powerful tool to do css (and scss), example :
I type bi and press tab and it gives me : background-image: url(|); (with the | your cursor).

If you are interested, please take a look at this:

  • Emmet for sublime, and all the abbreviation (Emmet is very good with HTML too -- look what is happening when you type, for example, nav>ul>li...)

Now, how to make it works with scss:

The answer is here

  • You have to install the package sass-textmate-bundle for scss and do what I have wrote.
  • If you need sass and not scss, check this answer, especially the second response from Alexander Ekdahl


来源:https://stackoverflow.com/questions/18618579/sass-support-for-sublime-text-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!