1

I have tried //,/*----*/,{{-----}}, but none of them are not seem to be work.

Kick Buttowski
  • 6,709
  • 13
  • 37
  • 58
Oshara
  • 11
  • 1
  • 4
  • Check this Link. [https://stackoverflow.com/questions/41228833/how-to-comment-code-in-a-vue-js-file](https://stackoverflow.com/questions/41228833/how-to-comment-code-in-a-vue-js-file) – Krupal Panchal Oct 01 '19 at 05:12

1 Answers1

1

You need to use simple HTML comments in your vue code.

<!-- Your Vuetify code -->
Ravi Mengar
  • 1,181
  • 1
  • 11
  • 18
  • but if you have something like white--text , it does not work? – Kick Buttowski Jan 13 '20 at 22:46
  • @KickButtowski For the comment to work, the entire `` is required. So the `--` in `white--text` would not interfere with a comment or cause a comment to occur. – David Gay May 20 '20 at 15:24
  • The HTML comments are *not* a universal solution. They only work if you comment out *entire components*! Say you're testing _props_ in a component and your beautifier lays them on separate lines. Now, comment out one of them with ``, build that and let me know how it went, because Vue 2.6.12 / Vuetify 2.4.4 beg to differ. If your solution is not universal, please constrain it. Trying before pouring out knowledge is also a useful tip that more SO users could follow. – Ricardo May 10 '21 at 06:58