vuejs / vetur

Vue tooling for VS Code.
https://vuejs.github.io/vetur/
MIT License
5.75k stars 593 forks source link

Style (and/or script) initial indent set to true indents commented out code every code formatting #1118

Open JakubKoralewski opened 5 years ago

JakubKoralewski commented 5 years ago

Info

Problem

Setting this:

// VSCode settings.json
"vetur.format.styleInitialIndent": true

results in CSS/JS code commented out in <style> and <script> tags to get indented every save.

Link to GIF (too big for GitHub): https://i.imgur.com/ObDVHzz.gif

Reproducible Case

  1. Using:

    • Prettier as your formatter with these settings
    • TSLint as your Githubissues.
    • Githubissues is a development platform for aggregating issues.