vuejs / vetur

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

Comment Out Stylus Differently #1366

Open smhmd opened 5 years ago

smhmd commented 5 years ago

Problem

Using Stylus Supremacy to format Stylus code, you can comment out single lines with //, but if it includes the selector, i.e. ul > li, the block gets deleted on save. The proper way to comment out "multi-line comments" (look at this https://thisismanta.github.io/stylus-supremacy/#options) is wrapping the code in /**/ as in:

/*
span
  position: relative
  display: inline-block
  width: 60px
  height: 34px
*/

This way it does not get deleted on save. So, when using toggle line comment in vscode, can you use /**/ in <style lang="stylus"> in code that includes the selector? /**/ works universally, btw, line or block; never gets deleted.

octref commented 5 years ago

@ThisIsManta What's your thoughts?