VisualStudioJavaScript智能感知定制
我试图在VisualStudio中自定义javascript函数中的intellisense,而不注释该函数 我已尝试推动我自己的项目: 但不幸的是,当toto还没有在某个地方初始化时,这没有效果。 但如果toto存在: 所以。。。简单的问题是,有没有一种方法可以让toto完成的行为就像它已经被定义了一样?有没有我错过的国旗 以下是我在事件参数“e”上找到的字段VisualStudioJavaScript智能感知定制,javascript,visual-studio,autocomplete,intellisense,javascript-intellisense,Javascript,Visual Studio,Autocomplete,Intellisense,Javascript Intellisense,我试图在VisualStudio中自定义javascript函数中的intellisense,而不注释该函数 我已尝试推动我自己的项目: 但不幸的是,当toto还没有在某个地方初始化时,这没有效果。 但如果toto存在: 所以。。。简单的问题是,有没有一种方法可以让toto完成的行为就像它已经被定义了一样?有没有我错过的国旗 以下是我在事件参数“e”上找到的字段 关于未定义的toto: 目标:空(未定义) targetName:toto(字符串) 项目:(数组) 范围:成员(字符串) _
- 关于未定义的toto:
- 目标:空(未定义)
- targetName:toto(字符串)
- 项目:(数组)
- 范围:成员(字符串)
- _$items:(数组)
- 已定义toto:
- 目标:1(数目)
- targetName:toto(字符串)
- 项目:[对象],。。。(数组)
- 范围:成员(字符串)
- _$items:[对象],。。。(数组)
我正在使用VS2013好的,我找到了一种在没有参数注释的情况下向函数参数添加intellisense的方法。 若函数在intellisense运行时生命周期内被调用,它将存储传递到参数中的值的类型。 在这里,我用数字5调用我的方法,完成的行为就像toto是数字类型一样 此外,我发现: 从msdn: 声明了一个参数,但未在 活动文档,如以下示例所示
function illuminate(light) {
light. // Accurate statement completion is not available
// unless illuminate is called elsewhere with a
// parameter that has a value. If it is called only
// in a function that is a sibling to
// illuminate(light) in the call hierarchy, the
// IntelliSense engine also cannot determine the
// parameter type.
}