Using Ctrl+/ in WebStorm vuejs3 Style tag adds // causes an error

35 views Asked by At

enter image description here

Normally it should add the /**/ comment

How to fix this?

WebStorm 2023.3.4, Windows 11

1

There are 1 answers

0
tao On BEST ANSWER

When they don't have a lang attribute, <style /> tags in Vue SFCs are interpreted as PostCSS.

Go to Settings | Editor | Code Style | Style Sheets | CSS | PostCSS and check that /* comment */ is selected.


Related YouTrack issues: