TypeScript intellisense: Suggest to prepend "this." if I typed the name of a class member #21202
Labels
Fixed
A PR has been merged for this issue
Suggestion
An idea for TypeScript
VS Code Tracked
There is a VS Code equivalent to this issue
Milestone
From @Duckers on January 16, 2018 11:47
A very common scenario when writing TypeScript (coming from C#) is that I forget to prepend
this.
when I want to reference a member of the current class. My muscle memory also relies a lot on the intellisense to complete the names of members. This very often results in the code completer completing an identifier with a very unlikely option from the global namespace, instead of simply prependingthis.
to refer to a local member.Example:
This ends up completing as
HTMLOptionElement
or something similar, whenthis.Options
would have been a much more probable intention.Copied from original issue: microsoft/vscode#41668
The text was updated successfully, but these errors were encountered: