Is there a way to get WebOstorm tag attribute values ​​for autocomplete?

I am trying to make WebStorm autocomplete some HTML attribute values ​​when 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 auto-completion for the situation as shown below?

 <div layout="can be row or column"></div> 

The layout value is row or column , so I want the row and column to appear when I enter the layout = "row / column here", is this possible?

I am using WebStorm 12 EAP.

+5
source share
2 answers

I also did some research, but did not answer this question. It looks like you can just add a custom tag that will be automatically completed, for example. to layout="" , but not their meaning.
You cannot change the completion behavior at the moment, see this old ticket

+3
source

Well, you can try importing. In the context of TypeScript, WebStorm can generate import statements for modules, classes, and any other character that can be exported and called as a type.

Here is the link from the official documentation.

+2
source

Source: https://habr.com/ru/post/1245212/


All Articles