gpt4 book ai didi

css - 在 Sublime Text 上使用 SASS 自动完成缺少分号?

转载 作者:技术小花猫 更新时间:2023-10-29 11:01:05 26 4
gpt4 key购买 nike

我刚刚开始将 SASS 与 Sublime Text 2 结合使用,并且非常喜欢它。但是,某些适用于 CSS 的自动完成功能不适用于 SASS。例如,当我在 CSS 文件中键入:float 并按 tab 时,它会自动添加一个分号

float :

同样,如果我添加 left 并按 tab,我会得到

float :左;

但是,它不会在 SCSS 文件中执行此操作。有没有办法让这个自动完成恢复,但是用SASS?

最佳答案

固定:https://github.com/sergeche/emmet-sublime/issues/70

For SASS syntax, default dialect is sass, not scss (it’s important). According to examples from http://sass-lang.com, closing semicolon is not required.

But you can alter this behaviour: in User’s Emmet.sublime-settings file, add the sass.propertyEnd property for preferences section, like this:

{
"preferences": {
"sass.propertyEnd": ";"
}
}

关于css - 在 Sublime Text 上使用 SASS 自动完成缺少分号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21953759/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com