热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

VisualStudio2008不会在JS文件中显示我的XML注释-VisualStudio2008doesn'tshowmyXMLcommentsinJSfiles

functionSubmit_click(){if(!bValidateFields())return;}functionbValidateFields(){
function Submit_click()
{
  if (!bValidateFields())
    return;
}

function bValidateFields() {
/// Validation rules
/// Boolean
...
}

So, when I type the call to my bValidateFields() function intellisence in Visual Studio doesn't show my comments. But according to this it should. Should it?

所以,当我输入调用我的bValidateFields()函数时,Visual Studio中的intellisence不会显示我的注释。但据此,它应该。应该是?

3 个解决方案

#1


1  

I recall an issue where having turned off the Navigation Bar in VS stopped a lot of the JS intellisense from working properly. If you have it turned off, try turning the Navigation Bar on again and see if it helps.

我记得在VS中关闭导航栏的问题阻止了很多JS intellisense正常工作。如果关闭它,请尝试再次打开导航栏,看看它是否有帮助。

Edit: You may also have to do Ctrl+Shift+J to force the IDE to update the intellisense.

编辑:您可能还需要按Ctrl + Shift + J强制IDE更新智能感知。

Edit2: As @blub said, if there are any issues with the Javascript, the intellisense can break. Visual Studio actually evaluates the Javascript to create the intellisense, so if there are syntax errors it can fail and not build the intellisense completely, or at all.

编辑2:正如@blub所说,如果Javascript存在任何问题,智能感知可能会中断。 Visual Studio实际上会评估Javascript以创建智能感知,因此如果存在语法错误,它可能会失败并且不会完全构建智能感知,或者根本不构建智能感知。

#2


1  

The XML comments have to be inside the function, not above it. In Visual Studio 2008, the XML comment information is only display for files referenced with a ///

XML注释必须在函数内部,而不是在函数之上。在Visual Studio 2008中,XML注释信息仅显示用///

Visual Studio 2010 will display XML comment information for functions in the file your are editing and for files you are referencing.

Visual Studio 2010将显示正在编辑的文件中的函数的XML注释信息以及您引用的文件。

#3


0  

Did you try adding the /// comment at the top of the external library? I've run into this in the past and it resolved my issue.

您是否尝试在外部库的顶部添加/// 注释?我过去遇到过这个问题,它解决了我的问题。


推荐阅读
author-avatar
寺儿沟小晨晨
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有