Reputation: 1380
I'm trying to get WebStorm to autocomplete some HTML attribute values while working with Angular Material.
Editor > Inspections > HTML > Unknown HTML tag attribute
I added some attributes here like flex
, flex-md
and layout
, but how can I get autocomplete for a situation like below?
<div layout="can be row or column"></div>
A layout's value is either a row
or column
, so I want row and column to appear when I type layout="row/column here", is it possible?
I'm using WebStorm 12 EAP.
Upvotes: 5
Views: 504
Reputation: 3709
Well, you can try to import. In the TypeScript context, WebStorm can generate import statements for modules, classes, and any other symbol that can be exported and called as a type.
Here's link from official documentation.
Upvotes: 2
Reputation: 376
I've done some research too, but found nothing answering this question. Looks like you just can add custom tag, which will be automatically completed, e.g. tolayout=""
, but not their value.
You can't change the behaviour of autocompletion at the moment, see this old ticket
Upvotes: 3