O
O
olenkill22019-08-17 14:31:50
Emmet
olenkill2, 2019-08-17 14:31:50

How to fix emmet inside .vue files?

Can you please tell me how to fix unwrapping of styles within a section in sublime text 3? In a regular scss file, you can write mr10, press tab and as a result we get a line like margin-right: 10px; In single-file vue components, this does not work quite right... "mr10" will not expand, but "mr" + tab will expand into a line like "margin-right:", but at the same time "mr10+ml10" + tab will work correctly and we end up with "margin-right: 10px; margin-left: 10px;" Of course, you can use ctrl + e and everything will unfold as it should, but this is creepy as inconvenient. I use Vue for my projects and this switch from tab to ctrl + e is very painful ( Can this be fixed at all? <style lang="scss">

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anatoly Chernyshev, 2019-08-17
@kayn23

https://github.com/vuejs/vue-syntax-highlight
Try it, it should fix it.
ps
According to SB3, I can’t say for sure, but in vscode in the config you can manually write that .vue files have css association