方法一
# 勾选
Setting > Editor > Code Style > Sheet Styles > CSS > [other] > [Kepp single-line blocks]
方法二
快捷键 Join Line
选中对应要格式成一行的代码
Ctrl + Shift + J
# 勾选
Setting > Editor > Code Style > Sheet Styles > CSS > [other] > [Kepp single-line blocks]
快捷键 Join Line
选中对应要格式成一行的代码
Ctrl + Shift + J