HTML completion in .hbs file ?
Hello,
I'm using 'npm hbs' for templating but I don't have completion for HTML TAG and parameters,
I've tried in a .html too, to set '.hbs' to '.html' in hbs and express module configuration but nothing happen.
I started from a new Node.JS project then I add npm express and hbs modules.
I checked everything I suppose, tried a lot of configuration, try to restart and invalidate/cache, nothing changed.
Thanks for your answers.
Webstorm : 2019.3.1
OSX: 10.15.2
Please sign in to leave a comment.
Tags completion works fine for me in both .html and .hbs files:
what problems making it work have you faced? Some screnshots illustrating the issue would be helpful
Hello,
first thanks for answer, for tags it was my fault I'm using emmet so if I forgot to write '<' to have tag completion, but for parameter like in the picture below I don't have parameters, some are present like class, id. I was expecting 'method' but I only have 'onloadedmetada'. This file is from a simple starting nodes project with no other file.
> for tags it was my fault I'm using emmet so if I forgot to write '<' to have tag completion
Tags auto-completion only works after '<', but you can enter tag name or emmet abbreviation and hit Tab to get it expanded like in Emmet - see https://www.jetbrains.com/help/webstorm/2019.3/using-zen-coding-support.html
Attributes are completed properly for me:
It doesn't work, I've followed your links, I can't see Emmet on live template, below my screen caps.
It seems don't have any Emmet template installed (I check all Jetbrain IDE and idem)...
Preferences
Editor
Emmet live templates are there, see Zen CSS and Zen HTML in Settings | Editor | Live Templates
Thanks Elena I see, I was used with others templates, may be something reset in my configuration, I don't know why I couldn't have the same shortcuts but it's ok I found it thanks to you !!