Javascript File Editor empty or blank on Visual Studio 2015

Possibly save 2 hours of your time: One day I open a .js file on my Visual Studio and it shows a blank or empty screen. No code is displayed.

What I found is that under Visual Studio menu >> Tools >> Options >> Text Editor >> I was missing the JavaScript editor. I have no idea what may have caused this.

visual studio tool options.png
Luckily I am able to use the repair feature and restart computer to get this working again.

Search on Windows start menu >> Programs and Features

Programs and features.png

Right click on Visual Studio 2015 and click Change.

Uninstall or change a program.png
Then click on Repair. This next part may take over an hour so it is probably best to do this at end of day.

repair
Finally, after the repair is completed, it may show some errors. Please make sure to capture and copy those errors to another file for reference later if needed. It will ask you to restart your computer. Hopefully, you can now open the .js file successfully.

Advertisements