Visual Studio Intellisense methods with underscore don't appear

人盡茶涼 提交于 2019-12-23 10:58:22

问题


I'm using VS2012, and one of my project-wide Javascript function namespaces has all of its exposed methods beginning with underscores _, for example:

var NameSpace = {
    _aMethod = function () { },
    _anotherMethod = function () { }
};

I created a quick vsdoc file for the namespace, and the namespace itself appears, but none of the methods do. NOTE: If I remove the _ at the beginning of the methods, it works like a charm.

// This would work, and show up in the VSDOC
var NameSpace = {
    aMethod = function () { },
    anotherMethod = function () { }
 // ^ notice no underscores
};

Is there anyway around this?

Going through the entire project and renaming them (even with a find-all) would be risky since these methods are so intertwined with everything.


回答1:


If you go into Tools->Options->Text Editor->JavaScript->IntelliSense->References there should be a drop down for the reference group (depending on what type of project you may need to change this)

Once you have the right group you'll noticed there are some default included intellisense reference files. Try removing the underscorefilter.js



来源:https://stackoverflow.com/questions/17753446/visual-studio-intellisense-methods-with-underscore-dont-appear

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!