Visual Studio 2013 AngularJS 智能感知支持 [英] Visual Studio 2013 AngularJS intellisense support

查看:39
本文介绍了Visual Studio 2013 AngularJS 智能感知支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为 VS 2013 应该支持 angularjs 属性智能感知?出于某种原因,它在最新版本的 Microsoft Visual Studio Ultimate 2013 版本 12.0.21005.1 上对我不起作用

I thought VS 2013 is supposed to have support for angularjs attribute intellisense? For some reason it's not working for me on the latest version of Microsoft Visual Studio Ultimate 2013 version 12.0.21005.1

收到以下验证警告:属性ng-app"不是元素html"的有效属性.
属性ng-view"不是元素div"的有效属性.

Getting the following validation warning: Attribute 'ng-app' is not a valid attribute of element 'html'.
Attribute 'ng-view' is not a valid attribute of element 'div'.

我是否在某处遗漏了 xsd 引用?

Am i missing an xsd reference somewhere?

推荐答案

我遇到了同样的问题,我做了以下操作,它有所帮助.

I had the same problem and I did the following and it helped.

如果您使用的是 ReSharper,您可以添加一个扩展程序,该扩展程序将为您提供智能感知,并且不会发出警告.

If you are using ReSharper, you can add an extension that will give you Intellisense, and won't raise a warning.

VS 顶部菜单>Resharper>扩展管理器>搜索AngularJS这将添加 angular js 智能感知.

Top Menu in VS>Resharper>Extension Manager>Search AngularJS This will add angular js intellisense.

-------EDIT-------

使用 Resharper 8.2.1

Using Resharper 8.2.1

这篇关于Visual Studio 2013 AngularJS 智能感知支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆