Webstorm autocomplete in angular template?

When I write div, I can't find any suggestions unless div start with less symbol (<), than I can see the autocomplete, how can I change that behavior?

0
1 comment

You can't. In HTML context everything is a plain text with HTML tags inside. There is no way for the IDE to guess if you are trying to write a word or a HTML tag unless you type < before starting typing div< it is a hint for IDE that you are typing a HTML tag.

 

Related forum topic: https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000719050-Autopopup-completion-works-inside-php-tag-but-doesn-t-work-outside-of-it-Is-there-any-fix-


If typing < is a problem, consider using Emmet : type div and hit Enter - IDE will expand it to <div></div>

0

Please sign in to leave a comment.