Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .