Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
}
share|improve this question
    
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 '12 at 11:41
    
yes, everything on the same line, please :) –  pax Jan 24 '12 at 3:35
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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