Comments not indenting correctly in .vue files

Pressing ⌘ + / adds a line comment to the current line in javascript / babel code. However, it adds the "//" to the beginning of the line, which produces an error in jslint, so I either have to manually indent or just add the // manually, skipping the convenience of this shortcut.

Before pressing ⌘ + /  (notice where the cursor is):

After:

Does anyone else have this problem? Do you know how to fix it? 

Thanks

0
1 comment

Normally this is controlled by Line comment at first column option (Settings | Editor | Code Style | JavaScript | Code Generation). But unfortunately this option doesn't work in embedded JavaScript, please follow https://youtrack.jetbrains.com/issue/WEB-13304 for updates

0

Please sign in to leave a comment.