springeye / vue-for-idea

This is vue plugin for idea
https://plugins.jetbrains.com/plugin/9188
BSD 3-Clause "New" or "Revised" License
321 stars 45 forks source link

Identitation #63

Open kticka opened 8 years ago

kticka commented 8 years ago

Hello,

Why it puts 4 spaces instead 2? My coffeescript/html configured to use 2 spaces, but in vue files, it still puts 4 spaces everywhere. Thats really annoying.

wujekbogdan commented 7 years ago

The plugin ignores language-specific settings. IMO each section should be formatted according to language-specific rules. So, let's say that we have 4 spaces set for JS files and 2 spaces set for SCSS files then code wrapped in <script> should be indented with 4 spaces and code wrapped with <style land="scss"> should be indented with 2 spaces.