I like my CSS code each class / id in one single line, I hate how Espresso automatically adds 2 new lines after each curly bracket { I open while writing CSS. IS it possible to turn this off?

.class {
I'd rather have this on a single line
}
link|improve this question

43% accept rate
What is it you want? Something line .class { }, so the contents are on the same line, as e.g. .class { font-size: 15px; } ? (ignoring the automatic comment line break) – Daniel Beck Jan 23 at 11:41
yes, everything on the same line, please :) – pax Jan 24 at 3:35
feedback

1 Answer

up vote 2 down vote accepted

/Applications/Espresso.app/Contents/SharedSupport/Sugars/CSS.sugar/TextActions/Actions.xml, change

        <text-trigger key-equivalent="{"></text-trigger>
        <text>{
    $0
}</text>

to

        <text-trigger key-equivalent="{"></text-trigger>
        <text>{ $0 }</text>

Copying the sugar to Application Support would require a few additional steps, see wiki.macrabbit.com/index/Override_default_sugars

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.