Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

201
Visualizações
How to highligt wrongly written code in visual studio code, when using nodejs?

Say I have this code in a file called myfile.js

const item1 = "A"

console.log(item1)

console.log(item2)

If i run the js file with node .\myfile.js , I first get the print of item1 ("A"), then it crashes, as it should, because item2 is not defined.

Before I used to get a red highlight that would warn me if a variable does not exist, in Visual studio code, but now for some reason it does not show me anymore.

What are the necessary steps I need to take to make it highlight wrongly written syntax again?

Googling this I mostly find that this can be solved by using the Esling extension, but for me it does not work. What can I do? I really want to keep using vs code.

I currently have no other extensions installed

my settings.json file looks like this

{
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "workbench.iconTheme": "material-icon-theme",
}
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda