[solved] how to set custom html tags in webstorm

Business background

using wepy to develop Mini Program
in webstorm
after using the view tag in template , it will highlight
, although it does not affect the compilation
, but it looks really annoying

.

the prompt is as follows

clipboard.png

clipboard.png

question

how to add custom tags in webstorm . I can"t find a place to change it

solve

  • No need to add custom tags
  • you only need to set tags that do not recognize without prompting

    .
    • file-> settings-> editor-> inspections-> html-> unkown html tag, unkown html tag attribute
Mar.04,2021

solve

  • No need to add custom tags
  • you only need to set tags that do not recognize without prompting

    .
    • file-> settings-> editor-> inspections-> html-> unkown html tag, unkown html tag attribute

adding custom tags is also found in file-> settings-> editor-> inspections-> html. The check function of
Webstorm is useful, otherwise it will not be developed, for example, it sometimes affects code formatting. So it is recommended to add custom tags.
there are two current problem solutions:
1, image.png
2, skip checking unknown elements and attributes, but encounter problems in the development of other frameworks.

but at present, the rpx unit can only ignore the check and cannot customize the unit of measurement for the time being. We should pay attention to

when formatting the code.
Menu