Intellisense能识别javascript原型函数吗?

Intellisense能识别javascript原型函数吗?,javascript,prototype,intellisense,visual-studio-code,Javascript,Prototype,Intellisense,Visual Studio Code,我使用的是VS代码,我希望Intellisense能够识别javascript原型函数。有没有办法将其配置为这样做 function MyObject() {} MyObject.prototype.foo = function() {}; MyObject.prototype.bar = function() {}; var myObj = new MyObject(); myObj. //I want Intellisense to show me the foo and bar f

我使用的是VS代码,我希望Intellisense能够识别javascript原型函数。有没有办法将其配置为这样做

function MyObject() {}

MyObject.prototype.foo = function() {};
MyObject.prototype.bar = function() {};

var myObj = new MyObject();

myObj.  //I want Intellisense to show me the foo and bar functions here

最新版本的VS代码支持这一点


我可以确认您现在就可以获得intellisense OP。当我导出文件并要求在nodejs中的另一个文件中时,它似乎不起作用,但在我当前版本的同一个文件中它起作用。有什么办法让它工作吗?