You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TypeScript intellisense: Suggest to prepend "this." if I typed the name of a class member #21202
Apologies if this is the wrong repo for Intellisense suggestions, if so, please redirect me.
VSCode Version: 1.19.1
OS Version: MacOS 10.13
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 prepending this. to refer to a local member.
Activity
mjbvz commentedon Jan 16, 2018
Interesting idea. Perhaps we can leverage the new
insertTextproperty on completion items for thismhegazy commentedon Jan 16, 2018
seems like a nice addition to the
insertTextsupport we have already.mhegazy commentedon Jan 17, 2018
Anders Lassen (@Duckers) thanks for the suggestion. should be in tomorrow's
typescript@nextif you want to take if for a spin.Duckers commentedon Jan 17, 2018
Fantastic! Thanks a lot :D