obrejla / vscode-jsthis

Better IntelliSense for JavaScript "this" keyword
MIT License
0 stars 0 forks source link

Better IntelliSense for JavaScript "this" keyword

Build Status

This extension adds a better IntelliSense of the "this" keyword in JavaScript files. It tries to collect all this.<property> usages, assignments to a prototype property and then suggest them in the IntelliSense popup.

For simplicity no context resolving is applied, all this usages are considered to be of one object.

You can also define an extra variable names to be treated the same way (e.g. self, that, etc.) in options.

IDE Feature

IntelliSense - Code Completion

Using

You will need to install Visual Studio Code 0.10. In the command palette select Install Extension and choose JsThis.

Options

The following Visual Studio Code settings are available for the JsThis extension. These can be set in user preferences or workspace settings (.vscode/settings.json).

{
    "jsthis.thisVarNames": ["self"]
}

License

MIT