问题
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...
I have installed all packages to support scss... but there is only syntax highlighting that is working.
回答1:
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, and all the abbreviation (Emmet is very good with HTML too -- look what is happening when you type, for example,
nav>ul>li
...)
Now, how to make it works with scss:
The answer is here
- 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
来源:https://stackoverflow.com/questions/18618579/sass-support-for-sublime-text-3