BeastCode / VSCode-Angular-TypeScript-Snippets

Visual Studio Code TypeScript snippets (TypeScript, Html, Angular Material, Flex Layout, ngRx, RxJS & Testing) for Angular 17
https://marketplace.visualstudio.com/items?itemName=Mikael.Angular-BeastCode
MIT License
92 stars 49 forks source link

Cursor not working as expected #103

Closed mlongoria1 closed 5 years ago

mlongoria1 commented 5 years ago

So when following these simple instructions on a .html file: https://github.com/BeastCode/VSCode-Angular-TypeScript-Snippets/raw/master/images/ngForSnippet.gif

The "cursor" does not change both instances of item to hero at the same time. I have to change the first instance of item to "hero" then press tab and change the second instance to "heros"

But this example gif shows that you should only have to type hero one time and it will fix it in both places.

Am I missing something very simple here? I am brand new to Angular and this plugin so sorry in advance if this is a newb question.

BeastCode commented 5 years ago

I should update the gif. It used to work this way, but it turned out to be a bad idea since it will only work for some english nouns. "Hero" and "item", but if you type in scarf you would get scarfs and not scarves. While it works pretty well for english nouns and doesn't work at all in many other languages.

Thanks for entering a potential issue, I hope you enjoy Angular and let me know if there are an snippets you're missing. -Mike