Setting > Editor > Code Style > CSS > [other] > [Kepp single-line blocks]