我刚开始使用SASS和Sublime Text 2并且非常享受它.但是,一些与CSS一起使用的自动完成功能不适用于SASS.
例如,在我键入的CSS文件中:float并按Tab键,它会自动添加分号
例如,在我键入的CSS文件中:float并按Tab键,它会自动添加分号
浮动:
如果我然后添加左侧和按Tab键,我也会这样做
向左飘浮;
但是,它不会在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 07001,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": ";" } }
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。