[英]Better autocompletion in sublime for SCSS
In sublime, if I type "border" and then TAB, it guesses: "border-top-left-radius" which annoys me like hell. 在崇高的氛围中,如果我键入“ border”然后输入TAB,它会猜测:“ border-top-left-radius”,这使我像地狱一样烦人。 I have to set the syntax to "LESS" to get a better autocomplete. 我必须将语法设置为“ LESS”,以获得更好的自动完成功能。
Why is sublime acting this way? 为什么崇高如此行事? Is there a plugin to get a better autocompletion for SCSS files? 是否有一个插件可以为SCSS文件提供更好的自动完成功能?
Even though this question is old I am having the same issue. 即使这个问题很旧,我也有同样的问题。 When I am typing db
i get box-decoration-break:
and seriously who cares about this property I just want to get display:block
. 当我输入db
我得到box-decoration-break:
:,而认真地关心这个属性的人我只想得到display:block
。 Or when I type dib
I am hoping to get display:inline-block;
或者当我输入dib
我希望获得display:inline-block;
What I did is to install emmet
using the Package Manager
and then on User Preferences (Sublime Text 2 > Preferences > Settings - User ) disable autocomplete: "auto_complete": true
我所做的是使用Package Manager
安装emmet
,然后在“用户首选项”(Sublime Text 2>“首选项”>“设置-用户”)上禁用自动完成功能: "auto_complete": true
Now with Sass my files are looking good and the autocomplete feature works well, you can also use emmet
with hayaku
. 现在,使用Sass,我的文件看起来很好,并且自动完成功能运行良好,您也可以将emmet
与hayaku
emmet
使用。
There's a package named SCSS In sublime's package-control plugin. 在sublime的package-control插件中有一个名为SCSS的软件包 。
A Sass & SCSS syntax package for Sublime Text 2 用于Sublime Text 2的Sass&SCSS语法包
(note: it's working for me with sublime-text-3 as well) (注意:它也适用于sublime-text-3)
It's lets you choose 'SCSS' syntax, and performs just as it should. 它使您可以选择“ SCSS”语法,并执行应有的功能。
Give it a try. 试试看。
There are installation notes on the package web-site, You can install it manually, or through package-control. 软件包网站上有安装说明,您可以手动安装,也可以通过软件包控制进行安装。
If you havn't installed package-control yet, I recommend that you do. 如果尚未安装程序包控制,建议您这样做。
It's one of sublime's best features in my opinion, you can find many packages to improve your productivity. 我认为这是Sublime最好的功能之一,您可以找到许多软件包来提高生产率。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.