简体   繁体   中英

Avoid CSS prettify creates new line for each tag on sublime 3

I'm using HTML - CSS - JS Prettify Plugin and sometimes when I write CSS styles I like to put them next to the other, like this

h1, h2, h3, h4, h5, h6, .uk-h1, .uk-h3, .uk-h4, .uk-h5, .uk-h6

but when I prettify the file it puts each tag below the previous one turning this into a 11-lines tall segment. Is there a way to tell the plugin to avoid this kind of behavior?

Find where your Prettify lives in your menu and look for Set Prettify Preferences .

Then find this line and make sure its set to false.

"newline_between_rules": false, // Add a new line after every css rule

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM