So, when I want to declare a new method in html of Angular component, webstorm provides me opportunity to create this method in ts:

But, if I try same at VS code I can't create a method.
Is there some solution? (extensions, maybe something in settings)
