Sass 支持 sublime text 3 [英] Sass support for sublime text 3
问题描述
有没有办法让 scss 的自动完成功能与 css 的工作方式相同?
例如,我输入 backg
然后 tab
它给了我 background:;
但不在 scss 文件中...
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...
我已经安装了所有支持 scss 的包...但只有语法高亮是有效的.
I have installed all packages to support scss... but there is only syntax highlighting that is working.
推荐答案
可以安装Emmet(原Zen Coding),它是一个非常强大的做css(和scss)的工具,例子:
我输入 bi
并按 tab
,它给了我:background-image: url(|);
(带有 |
代码>你的光标).
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 和 所有缩写(Emmet 对 HTML 也很好——看看你输入时发生了什么,例如,
nav>ul>;li
...)
- 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
...)
现在,如何使它与 scss 一起工作:
答案是这里
- 您必须为 scss 安装包 sass-textmate-bundle 并执行我所写的.
- 如果您需要 sass 而不是 scss,请查看这个答案,尤其是Alexander Ekdahl 的第二个回应
- 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
这篇关于Sass 支持 sublime text 3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!