VSCode - You don't have an extension for debugging HTML error

Viewed 32952

I worked a lot with Visual Studio Code, but since yesterday on all my devices it says: You don't have an extension for debugging HTML.

After a few tries I deleted VSCode and re-installed it. It worked right but as soon that I close VSCode and re-open it, the error keeps showing.

I've noticed that when I close it there is a tiny update box. I've reinstalled it a few times but it keeps happening.

error image

3 Answers

Go to RUN and select ADD Configuration...

enter image description here

After select your browser and bingo!

It seems launch.json file is missing. Go to Run and Debug and click Create a launch.json.

Using launch.json didn't work for my html file. All I did was paste the path of the file into my browser and it worked fine for me.

Related