postalservice14 / vuejs-plugin

[DEPRECATED] Vue.js features for the Intellij Platform (WebStorm, RubyMine, Intellij, etc)
139 stars 20 forks source link

Formating of sass in a .vue file #8

Open treforcoster opened 8 years ago

treforcoster commented 8 years ago

Any chance of some improved Sass support in a .vue file. Am able to use it but formatting is awful and breaks code.

Nes-si commented 8 years ago

@treforcoster you can use this syntax: <style lang="sass" rel="stylesheet/sass">

se-panfilov commented 8 years ago

That syntax a bit weird ( I mean rel="stylesheet/sass" not really supposed to be here). vue-for-idea plugin don't need such declaration btw.

But I want to recommend this plugin over vue-for-idea on StackOverFlow here, because vue-for-idea have shity side-effect.

Can you fix this issue?

hedii commented 8 years ago

IDE plugins should not change the way we code, rel="stylesheet/sass" is not a solution

wujekbogdan commented 7 years ago

@Nes-si

This is not a solution. Even when these attributes are present on a <style> tag then scss formatting rules are ignored. The code should be formatted based on global language-specific rules.

I have 2 spaces set for scss language, but scss code in *.vue files is indented with 4 spaces.

callumacrae commented 7 years ago

Vote on this :D https://youtrack.jetbrains.com/issue/WEB-19082

iloginow commented 7 years ago

rel="stylesheet/..." is not a solution at all if you're using postcss