Phpstorm 有没有办法按字母顺序重新排列css样式化组件?
WebStorm提供了设置Phpstorm 有没有办法按字母顺序重新排列css样式化组件?,phpstorm,webstorm,styled-components,Phpstorm,Webstorm,Styled Components,WebStorm提供了设置按名称对CSS属性进行排序- 重新排列的内容: .test { display: flex; align-items: center; cursor: pointer; } .test { align-items: center; cursor: pointer; display: flex; } 至: .test { display: flex; align-items: center; cu
按名称对CSS属性进行排序
-
重新排列的内容:
.test {
display: flex;
align-items: center;
cursor: pointer;
}
.test {
align-items: center;
cursor: pointer;
display: flex;
}
至:
.test {
display: flex;
align-items: center;
cursor: pointer;
}
.test {
align-items: center;
cursor: pointer;
display: flex;
}
遗憾的是,这不适用于样式化组件
CSS:
const StyledComponent=styled.div`
显示器:flex;
对齐项目:居中;
光标:指针;
`;
是否有一种方法可以实现WebStorm中样式化组件的JS中CSS部分的完全相同的行为?当前不支持,请参阅。相关youtrack票证: