问题描述
我安装了 Visual Studio 2015 CTP 4,现在安装了 CTP6 - 在这两种情况下都缺少 Javascript 支持.
I had Visual Studio 2015 CTP 4 installed and now CTP6 - In both cases it was missing Javascript support.
不显示 .js 文件的语法高亮
Not showing syntax highlighting for .js file
Intellisense 不适用于 .js 文件
Intellisense not working for .js files
此外,当我转到工具/选项/文本编辑器时 - 缺少 Javascript 语言部分.查看图片及其与 VS2013 的比较.
Also when i go to tools/options/Text Editor - Javascript language section is missing. See image and its comparison with VS2013.
图片位于:https://social.msdn.microsoft.com/Forums/getfile/615484
推荐答案
扩展@user3810312 所说的...
To expand on what @user3810312 said...
- 如果您安装到另一个驱动器,请将您的
C:\Program Files (x86)\Visual Studio 14.0
文件夹复制到安装顶部. - 以管理员身份打开 Visual Studio 命令提示符(右键单击以管理员身份运行)
- 导航到安装 VS 2015 的目录
- 运行
devenv/setup
- 运行
devenv.exe/InstallVSTemplates
- If you installed to another drive, copy your
C:\Program Files (x86)\Visual Studio 14.0
folder on top of your install. - Open the Visual Studio Command prompt as an administrator (right-click run as Administrator)
- Navigate to the directory where VS 2015 is installed
- Run
devenv /setup
- Run
devenv.exe /InstallVSTemplates
下次启动 Visual Studio 2015 时,我使用了 Intellisense.工作非常棒.
I had Intellisense the next time I booted up Visual Studio 2015. Worked like a charm.
这篇关于Visual Studio 2015 CTP - 缺少 Javascript 支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!