Code gets all white in VS Code, no syntax highlighting or suggestions

Asked

Viewed 640 times

0

When I put the extension ". htm" in the file, back to normal colors and suggestions, but all my applications are configured with ". html". I have uninstalled and installed not solved. Does anyone know why?

imagem do cod. em branco

minhas extensões

2 answers

3

I just went through it. So what I did was go on Manage, Settings, User and in Files Associations, i had a *.html file association with njk. I deleted it, went back in my code and everything was back to normal. If this association is useful to you, maybe you could find another way to configure it. I hope it helped you!

Thanks!

2

To change this setting just modify how the file is recognized by Vscode.

To make that change:

  1. Click on: select language mode inserir a descrição da imagem aqui
  2. In the text box that opens type: html inserir a descrição da imagem aqui
  3. Press enter inserir a descrição da imagem aqui
  4. The text must be in the wrong place. inserir a descrição da imagem aqui

Browser other questions tagged

You are not signed in. Login or sign up in order to post.