我刚刚开始将 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/