0

Does anyone know what is causing this problem? I can't seem to figure it out.

When I create a new .vue file, I can't get any autocomplete/syntax highlight at all.

But the one I created at the start of the project seems to work fine.

WebStorm .vue syntax error

3
  • Don't you need to actually select the language you want to have an highlight on? Somewhere on the bottom or via a command palette? Commented Sep 21, 2022 at 21:02
  • 1
    Webstorm knows it via File Type in the settings (*.vue). Thats why you see the synxtax highlights with the file on the left. But not sure why the file on the right doesn't have it. Commented Sep 21, 2022 at 21:10
  • 1
    You will probably need to share some of your IDE settings here tho. Commented Sep 21, 2022 at 21:13

1 Answer 1

1

Looks as if the file GameDetails.vue is treated as plain text file. Does the issue persist if you rename the file? Please check the registered patterns in Settings | Editor | File types, Text and Auto-detect file type by content file types - can you see GameDetails.vue or any pattern with .vue suffix there? Removing it from the list should solve the problem.

Sign up to request clarification or add additional context in comments.

1 Comment

I reinstalled webstorm and it fixes itself. Not sure what happened. I didn't touch any of the settings either.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.