在PhpStorm中格式化样式组件

我正在使用PhpStorm。 我使用Styled and Components & Styled JSX plugin支持样式化组件。它非常有用,因为它提供了很酷的功能,例如代码完成和建议。但是,如果我可以格式化所编写的代码,那将非常有用。有谁知道我该如何在PhpStorm中格式化样式组件代码?

在图片中,您可以看到代码未格式化,除非我自己对其进行格式化,否则它将保持原样。 在此先感谢:)

在PhpStorm中格式化样式组件

lilywang2009 回答:在PhpStorm中格式化样式组件

在插入的带有插值的CSS中,自动格式化无法正常工作,请按照WEB-28540进行更新。有关详情,请参见https://youtrack.jetbrains.com/issue/WEB-32048#focus=streamItem-27-3300923.0-0

相关的Styled and Components & Styled JSX插件插件问题:https://github.com/styled-components/webstorm-styled-components/issues/60

本文链接:https://www.f2er.com/3116828.html

大家都在问