SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,658
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)

    How to: Coda remove default code formatting?

    I code format like this...

    h1 {
    width:480px;
    height:200px;
    }

    Coda auto formats like this as I write the rules...
    h1 {
    ____width: 480px;
    ____height: 200px;
    }

    Notice the tab and the space after the width. Anyway to remove this auto feature?

  2. #2
    SitePoint Member
    Join Date
    Jul 2014
    Location
    Canada
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I know this is an old thread, but if you're still having that problem.. Go to Coda > Preferences, click on the Editor tab, and uncheck "Indent new lines." This will stop the indentations in every file though. But I'm not sure if there's a way to remove the space after the colons... I usually just backspace every time it does that.

  3. #3
    SitePoint Enthusiast volter9's Avatar
    Join Date
    Jun 2014
    Location
    United States, CA
    Posts
    69
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Nice solution Jason!

    Maybe you know how to "beautify" code in Coda? I couldn't find plugin or AppleScript for that.

  4. #4
    SitePoint Member
    Join Date
    Jul 2014
    Location
    Canada
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not sure if this is what you mean, but I have a plugin called "PHP & Web Toolkit" (http://www.chipwreck.de/blog/software/coda-php). It can tidy code, validate it, and minify it. That's the only plugin I use and it works great! I don't know if that's what you want though, because it'll automatically add the indentations when you "tidy" your code.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •