Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Intellisense methods with underscore don't appear

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.

like image 527
Mark Pieszak - Trilon.io Avatar asked Oct 04 '22 12:10

Mark Pieszak - Trilon.io


1 Answers

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

like image 109
Bryan Avatar answered Oct 12 '22 12:10

Bryan