角智能感知无法确定准确的完成 [英] Angular Intellisense was unable to determine accurate completion

查看:510
本文介绍了角智能感知无法确定准确的完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Visual Studio 2015年为我angularjs应用程序。

I am using Visual Studio 2015 for my angularjs app.

智能感知效果很好这里

Intellisense works well here

但是当我创建了一个app.js文件,并尝试写code那里,智能感知无法正常工作。

but when I created an app.js file and try to write code there, intellisense does not work.

在这里输入的形象描述

我错过了什么吗?
添加1:这是在文件夹结构

推荐答案

我爱这个帖子从克里斯腾森的Mads 的解释是如何工作的。您可以参考添加到每个文件,或者使用_references.js创建一个全球性的参考名单。在短短该文件引用一个快速的方法是拖动你想从Solution Explorer引用到您正在从引用文档中的文本编辑器文件。这将增加一个特殊的注释到文件的顶部,你所有的设置。

I love this post from Mads Kristensen to explain how this works. You can add a reference to each file, or use _references.js to create a global reference list. A quick way to reference in just that file is to drag the file you want to reference from the solution explorer into the text editor for the document you are referencing from. It will add a special comment to the top of the file and you're all set.

顺便说一句......它工作在HTML原因是Visual Studio可以从文档中的脚本标记推断角的presence。

By the way... it works in the HTML because visual studio can infer the presence of angular from the script tags in the document.

这篇关于角智能感知无法确定准确的完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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