的Visual Studio 2013 AngularJS IntelliSense支持 [英] Visual Studio 2013 AngularJS intellisense support

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

问题描述

我想VS 2013应该有支持angularjs属性的智能感知?出于某种原因,它不是为我工作在最新版本的Microsoft Visual Studio旗舰版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-应用'不是元素'HTML'一个有效的属性。结果
属性'NG视图'不是元素'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顶部菜单
这将增加角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 IntelliSense支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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