Visual Studio 2010: Javascript Highlighting

I am using VisualStudio 2010 with VS.PHP. When I write or open a javascript file, it is not highlighted, and intellisense does not work. All I see is plain text. VS doesn't seem to β€œidentify” the javascript file. When I manually order js files to open in the Script editor (in Tools> Options> Text editor> File extension), nothing changes. Highlighter in (under Tools> Options> Environment> Tools & Colors). Do you have any ideas how I can trigger the backlight? Google doesn't say anything.

+6
source share
3 answers

I had the same problem and I found a solution that works for me.

  • Open VS 2010
  • Select Tools / Options ... in the menu
  • Open the text editor / file extension properties page.
  • Add an entry for the "js" file extension and set the "Script Editor" to edit

I still don't know why this does not work out of the box, but at least it fixes the problem.

+1
source

You probably uninstalled the Web Developer 2010 component during the installation of Visual Studio. Or you are using one of the Express editions.

+3
source

Source: https://habr.com/ru/post/894069/


All Articles