Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment Out Stylus Differently #1366

Open
smhmd opened this issue Jul 24, 2019 · 1 comment
Open

Comment Out Stylus Differently #1366

smhmd opened this issue Jul 24, 2019 · 1 comment

Comments

@smhmd
Copy link

smhmd commented Jul 24, 2019

  • Platform: Windows 10.0.18362
  • Vetur version: 0.21.1
  • VS Code version: 1.36.1

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
Copy link
Member

octref commented Aug 7, 2019

@ThisIsManta What's your thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants