Phill Treddenick
Phill Treddenick

Reputation: 1420

Can Intellisense recognize javascript prototype functions?

I'm using VS Code and I would like Intellisense to recognize javascript prototype functions. Is there a way to configure it to do so?

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

Upvotes: 5

Views: 1530

Answers (1)

BenJammin
BenJammin

Reputation: 71

This is supported in the latest versions of VS Code.

https://github.com/Microsoft/TypeScript/wiki/Salsa

Upvotes: 2

Related Questions