30 Panic Coda Tips and Tricks

I’ve only been using Coda for a day or two (see Panic Coda 1.0 First Impressions), but I have to admit, it’s growing on me. Coda isn’t just a pretty face. It’s simple and straightforward and a pleasure to use.

Panic Coda

As I’ve been poking around, I’ve been making a mental list of some things that make using Coda even easier. There’s nothing earth shattering here, but I decided to write this up so I would remember and in the hopes that you’ll add your own tips in the comments.

Be sure to read this post, too: Panic Coda: What’s Missing? 19 Free Apps to Fill the Gaps

General Tips

1. Switch between modes by pressing the Command key and 2 through 6 to jump to Edit or one of the other views. It isn’t listed on the View menu, but Command-1 will take you back to Sites.

2. By default, single clicking on a file will open it. You can change this in the Preferences, but holding down the Option button when clicking a file will select it without opening it.

3. The buttons at the bottom of the file browser aren’t that useful (it’s easier to use shortcut keys), but one thing you’ll almost certainly want to turn on is the Functions viewer (see below), which displays a Symbols pane listing the symbols in the current file.

Coda Symbols Pane

4. You can split tabs vertically or horizontally. The default orientation is set in the Preferences, but you can toggle between orientations by holding down the Option key before clicking the split button. To open a new file in a split tab, Control+click on the file and select Open in Split.

5. Coda doesn’t have enough shortcut keys. For example, if you want to take a quick peek at the Transcript window or the Clips palette, you have to go to the Window menu (or click Clips at the bottom of the Edit pane). See my instructions on Handpicked Software (OS X Tip: Creating Custom Keyboard Shortcuts) to learn how to create custom keyboard shortcuts for Coda in OS X’s System Preferences.

Sites Mode

6. If you want to use Coda to test a local WordPress or Pligg installation, the easiest way to get this working is to install MAMP. Make sure you have FTP Access turned on in your Sharing Preferences in System Preferences. Then create a new site in Coda with these settings (assuming a default MAMP install):

  • Root URL: http://localhost:8888
  • Remote Root: /Applications/MAMP/htdocs/
  • Local Root: /Applications/MAMP/htdocs/
  • Server: localhost
  • User Name: [the user name you login in to your computer with]
  • Password: [password you login to your computer with]
  • Port: 21
  • Protocol: FTP
  • List Encoding: Western (ISO Latin 1)
  • Use passive mode for data transfer (checked)

(Via comment #19 by dunk on The Unofficial Apple Weblog.)

Note: You’ll have to refresh pages manually to see changes when you preview your WordPress or Pligg install.

7. You don’t have to use the site preview for the site icon. To load any image, Control+Click the site icon and select Change Image. To clear it, Control+Click and select Clear Image.

8. The control menu also gives you an option to open the site in a new window, or to duplicate a site. If you have multiple domains hosted on one server, this is a quick way to create shortcuts to different directories. Just duplicate the site icon and edit the Remote Root field.

9. Double clicking on a site icon connects to the site, but not until it does a fancy flip to expand and open an empty Edit pane. If you enjoy this kind of eye candy, hold down the Command and Shift keys when you double click to see it in slow motion. This also works when you click to edit the site information.

10. When you’re connected to a site, you’ll see a little “x” next to the site name (see below). You can click this to disconnect.

Coda Site

11. Coda isn’t scriptable and it’s not compatible with Automator, but if you already have Transmit, you can create an Automator Workflow to synchronize files between your server and your computer. Sure, Coda lets you publish local files to your sites, but an Automator Workflow can synchronize in either direction.

Edit Mode

Coda Tab

12. Hovering your cursor over a tab name will give you a balloon with the title and volume, but Command-clicking on the tab name gives you the path to the file (see below).

Coda Path

13. To clone a tab, Control-Click on the tab name and select Clone tab. If more than one tab is open, control-clicking on a tab will give you an option to close all other tabs.

14. Shift-command-{ and shift-command-} cycle through open tabs.

15. You can change the syntax mode from HTML to CSS for autocompletion when working on a file that contains both kinds of code. Go to Text > Syntax Modes, or select the desired mode from the Syntax Modes sub-menu in the Action menu at the bottom left of the Edit pane. (See tip #5 above for how to create a keyboard shortcut for this).

16. If you already use SubEthaEdit, you can use your syntax mode files be copying them to the Coda folder in your Application Support folder.

17. You can highlight any word in the editor and hit Command-’ to look it up in the library, or just double click on a word while holding down the Command key.

18. You can make the font bigger or smaller by pressing Shift-command-+ or Command+-, just as you can in Safari.

19. To highlight the current line, check Highlight Current Line in the Colors tab of the Coda Preferences.

20. You can blockedit multiple lines in a file by holding down the Option key while making your selection. The cursor changes to a crosshair and selected text is highlighted in gray. To exit blockedit mode, hit Escape.

21. Be sure to turn on Hints by clicking the Hints button at the bottom of the viewer.

22. Select Revert to Saved from the File menu to download the original file and overwrite any changes you’ve made.

23. Be sure to click the warning triangle at the bottom of the Edit pane to turn on validation. Note: Coda only displays one error balloon at a time, even though you may see a number greater than 1 next to the warning triangle.

24. Sometimes, when validation is turned on, you’ll see an orange SnapBack button in the error balloon (see below). Clicking it will take you to the beginning of the error.

Coda Error Balloon

25. Coda doesn’t have anything like HTML Tidy built-in, as skEdit does, but you can install Tidy Service to tidy your markup from the Services menu.

26. BTW, if you grow to like the Panic Sans font and want to use it in other editors, Control-click on the Coda application icon, select Show Package Contents, then navigate to the Contents > Resources folder, double click on the font, and click the Install button in the font preview that pops up.

Preview Mode

27. You can toggle Preview and View Source views by hitting Option-Command-U. You can edit the code in Source view, but the original file won’t be updated. Be sure to Control-click and select Save Page As if you want to save the changes to a new file.

28. Hit Option-Command-B to open the Preview in a browser. Safari is selected by default, but if you choose a different browser from the popup menu to the right of the address bar, the next time you use the shortcut key it will open the most recently selected browser.

CSS Mode

29. For users of CSSEdit, CSS mode is probably the weakest link in Coda. Though useful as a cheat sheet, editing CSS in text or visual editing modes is awkward for the experienced coder. If you’d rather not use the graphical editor, you can open the CSS file in a split window and edit it directly.

Note that if you open a new HTML document and switch to the CSS pane, the CSS is just added to the top of your HTML document. If you decide to edit the CSS directly in the HTML document, see tip #15 above on how to quickly swap syntax modes.

30.Remember, you can always Control-click on your CSS files in the file browser and choose to open your CSS files in CSSEdit.

Categories : Software

23 Comments For This Post

  1. Andrew Sutherland April 25th, 2007 at 8:21 am

    Excellent review. Thanks especially for the MAMP stuff, I’m sure a lot of people have been scratching their heads over that.

  2. Robert Ellis April 25th, 2007 at 8:24 am

    Thanks, Andrew. I wish I’d known about it before. I’ve installed MySQL locally a few times before, but MAMP is a breeze compared to trying to get everything configured yourself.

  3. Robert Ellis April 25th, 2007 at 12:51 pm

    Here’s another tip:

    Coda doesn’t arrange your sites in any particular order, so if you have a lot of sites they can be difficult to manage. But you can drag and drop the site icons and rearrange them as you like. The animation is pretty slick when you move them around.

  4. Robert Ellis April 25th, 2007 at 1:05 pm

    More tips at Steven Frank’s blog. See Coda: A Site For Sore Eyes. Frank is the co-founder of Panic.

    Also, take a look at Cabel’s Sasser’s blog. He’s the other co-founder and, from the looks of his blog, the guy responsible for Panic’s gorgeous site and Coda’s eye candy coolness.

  5. Steffan Williams April 25th, 2007 at 3:20 pm

    Nice review! Thanks for mentioning how to combine this with MAMP - I’ve been wondering this myself!

    Now I have more reasons to buy this… damnit.

  6. Robert Ellis April 25th, 2007 at 3:24 pm

    Thanks, Steffan. Yeah, MAMP is great. I don’t know how I missed it before.

  7. Mark Florida April 27th, 2007 at 2:35 pm

    Does anyone know how I can get Coda to highlight ASP syntax (like Dreamweaver)? Sadly enough, I have to work on ASP code a lot, and although I currently use Dreamweaver, Coda looks like a really nice (Intel-native Cocoa) alternative.

  8. Robert Ellis April 27th, 2007 at 4:57 pm

    Sorry, Mark. I don’t know of a way to get Coda to highlight ASP syntax.

  9. Conor April 28th, 2007 at 2:33 am

    Coda is a very nice alternative but the new Dreamweaver is Intel native as well.

  10. Tilman May 7th, 2007 at 7:13 am

    Nice tips, thanks! I can add alternative colors for syntax highlighting, downloadable on my site. I was not too much of a fan of the default colors…

    http://tint.de/new-syntax-highlighting-colors-for-coda

  11. andy May 10th, 2007 at 3:36 pm

    ust stumbled upon Coda today, and so far I love it! I need an ASP syntax highlighter as well, but haven’t had much luck finding one.

    I copied the PHP-HTML mode and made some modifications to it. It’s far from perfect, but it’s a place to start. Feel free to grab it and, hopefully, improve on it. I wasn’t able to get any autocomplete working for some reason… if anybody knows why, I’d love to know.

    http://andy.teamsoell.com/files/ASP-HTML.mode.zip

  12. Rick Lecoat June 21st, 2007 at 10:49 am

    Coda came out just exactly at the point where I was making the jump from WYSIWYG to hand-tooled code — a scary jump for me — and it has proved to be the most useful app I’ve gotten my filthy mitts on in a long time.

    Being able to get live previews of how my XHTML and CSS fumblings are affecting the page has been utterly invaluable to the learning process and has brought me on in leaps and bounds. Then I can preview externally in Firefox (with its wonderful Web Developer Extentions toolbar) at the touch of a button. And being able to slam the files up to the sandbox server for the obligatory IE(Win) tests is simplicity itself.

    Thank you for such a near-perfect app.

  13. Robert Ellis June 21st, 2007 at 10:52 am

    Rick, thanks for your comments. But don’t thank me. Thank Panic!

  14. Rick Lecoat June 21st, 2007 at 11:41 am

    Robert:

    Oops.
    You’re quite right of course — I’d been simultaneously reading Steven Frank (co-founder of Panic)’s blog and the last sentence fell victim to me being momentarily confused about where I was. But my comments still stand and if the Panic team happen along here (as they will no doubt do) then the sentiments are there for the taking.

    Note to self: try and remember which blog you are posting to!

  15. Massimiliano December 26th, 2007 at 1:01 pm

    Great post !
    Thanks a lot .. i’m new to coda :)

  16. Vincent C. April 1st, 2008 at 12:24 pm

    As a BBEdit user for some years now, i’ve tried Coda for a while. Even if it’s a great software (UI, updated files marked for publish, autocompletion, …), i think it’s not working for me.

    I always have a lot of files opened and the tabs in Coda is not handy in that case.

    The clips are good (good idea to be able to create clips for one particular site) but i hate the fact that it’s not keeping the indentation when i insert a clip. In BBEdit, i’m also able to classify the clips. Very useful.

    I don’t use preview mode because i always have to create PHP sessions and pass parameters to the pages. Anyway, i have two screens (one with the editor and one for Firefox).

    One thing Coda can’t do is search in multiple files. It is not able to compare files for differences.

    In despite of all great things Coda offers, i stick to BBEdit and Transmit.

    I believe Coda is great for small/average projects but not for big PHP sites/apps.

  17. gaeta April 4th, 2008 at 3:47 pm

    Always had to refesh manualy preview.
    sometimes it the url get sometimes changed to a local filepath.

    I will get you out, include this in your page!

    As bonus you get a nice animation.


    *You notice the script wan’t finished yet. But for my purpose it’s suitable.

    Coda is not scriptable that sucks!

    i wrote also a autosave script in apple script. But it doesn’t work.

    Anyone who know how you could to autosave your documents in coda?

  18. gaeta April 4th, 2008 at 4:20 pm

    // I hope your form will not break my script anymore
    // I work on a mac, but coda is set to UTF8
    // Anyway, include this script to refresh your page on a fancy way

    function jsinit(){
    funkitimer(100,100)
    }
    function funkitimer(i,j){
    var progressmax = document.getElementById(’timer’).offsetWidth;
    //var sURL = window.location;
    var sURL = “http://localhost:8888/portfolio-active/bubblewoks/index.php”
    document.getElementById(’timercontent’).innerHTML = unescape(sURL);
    document.getElementById(’timerprogress’).style.width= (progressmax/j)*(j-i) + “px”;
    if( i == 0){
    window.location.replace( sURL );
    }
    i–;
    timerid = setTimeout(”funkitimer(”+i+”,”+j+”)”,10);
    }

    #timer{
    position: absolute;
    top: 0;
    left: 20%;
    width: 60%;
    height: 20px;
    overflow: hidden;
    border: 1px solid #9F9;
    border-top-width: 0;
    }
    #timerbackground{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #CF9;
    opacity: 0.8;
    }
    #timerprogress{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: #FFF;
    opacity: 0.5;
    }
    #timercontent{
    position: absolute;
    top: 0;
    left: 0;
    font-family: monospace, “Courier New”, Courier, Monaco, monospace;
    color: #660;
    }

    //to be sure ths is my last post here’s the same thing in code-tags

    Webmaster: Please delete my preview post, i will ask my question again

    Anyone who know how you could to autosave your documents in coda?
    i wrote also a autosave script in apple script. But it doesn’t work.
    Coda is not scriptable that sucks!

  19. Alex April 26th, 2009 at 6:32 pm

    Really useful thanks! didn’t even know i could validate html while i write, would be nice if it worked with html/php files, is there anyway to do this? I can finally use my MAMP server with sites, awesome!

  20. CutMaster May 4th, 2009 at 2:15 pm

    There are some new plugin made by WPTechnology for coda, which are simple but interesting and useful every day :
    http://www.wptechnology.com/pluginsCoda.php?changeLanguage=EN
    They are also referenced by the Code Team :
    http://www.panic.com/coda/developer/community/plugins.php

  21. cristian June 8th, 2009 at 4:34 pm

    tabulation for multiple lines

    Im too used to smultron, in coda i cant put or remove tabulation to multiple lines. In smultron i just select a few lines and pres TAB or Shit+TAB to add or remove tabulation.

    Anyone knows how can i do this in CODA ?

    Thanks

  22. tuck June 9th, 2009 at 8:41 am

    @cristian

    Try this plugin,

    http://menumachine.com/blog/2009/01/tab-key-indenting-for-coda/

  23. KP June 22nd, 2009 at 4:41 am

    Thanks for the post! I kind of stumbled into using Coda about a month ago and never learned some of these little details. They will come in very handy!

6 Trackbacks For This Post

  1. 30 Coda Tips and Tricks... « Coda Lova Says:

    […] Coda Tips and Tricks… Upstart Blogger has a great write up of 30 Coda tips and tricks. By now some are obvious, but there are a few gems, such […]

  2. Panic Coda: What’s Missing? 19 Free Apps to Fill the Gaps Says:

    […] Your Code I’ve already mentioned Coda’s lack of formatting aids (see 30 Panic Coda Tips and Tricks) and recommended Tidy Service. Taco HTML Edit can also organize your tags, so everything is neatly […]

  3. Coda tips and hints Says:

    […] Some great tips and hints for Panic’s new web development editor “Coda“. The same author also has a decent review of Coda. I very much agree with his resume: Bottom Line: If you’re just starting out, buying Coda is a no brainer. But if you have your favorite apps in place, Coda may or may not be worth it for you. […]

  4. LunaBlog » Coda : éditeur HTML, CSS + FTP + SSH pour Mac OS X Says:

    […] Coda a déjà provoqué l’écriture de bons nombre d’articles dont cet excellent 30 Panic Coda tips and tricks qui vous donnera les premières astuces lors de l’utilisation de […]

  5. medianer.de » Coda - one-window web development Says:

    […] Upstarblogger has 30 nice tips for Coda on his website. […]

  6. LunaBlog » 30 trucs et astuces pour Coda, l’éditeur HTML de Panic pour Mac OS X Says:

    […] & tricks sur cet éditeur, quelques-uns bigrement utiles. » Lire l’article “30 Panic Coda Tips and Tricks“ Tags : apple, application, mac, os […]

Leave a Reply



Free 30 Day Blogging Course
The only free blogging course that will show you everything you need to know about making money with you blog. Straightforward daily instructions that will show you how to make a full time living from your blog in 30 days.

Follow me on Twitter

I follow everyone who follows me. This enables you and I to reach a wider audience than ever before. Follow me at twitter.com/morganzero.

Subscribe

Don’t miss a tip, trick, or theme. Subscribe to Upstart Blogger via email. Or grab the posts feed or comments feed.

Hosting Offer

Looking for a host that doesn’t suck? AN Hosting offers 500 GB disk space, 5 TB transfer, and a free domain for life, all for only $6.95 a month! Use code UPSTARTBLOGGER for 3 free months!

Quickstart

New to blogging? Start here: 25 Steps to Launching Your Blog and Making $100+ A Month in 30 Days.

Most web hosts suck
What can you do? Forget DreamHost. Read How to Find a Web Host That Doesn’t Suck. Or, just go right to the best host. Use code UPSTARTBLOGGER for 3 free months!

New to WordPress?
No sweat. Check these: Getting Started With WordPress: Administration Quick Tour and Getting Started With WordPress: Basic Settings.

This post could save your life
8 MySQL Backup Strategies for WordPress Bloggers (And Others).


How important is design?
Your blog doesn’t have to look like all the others. Check out the Upstart Blogger WordPress themes.

Dip into design
And read these posts: Tools for Capturing Design Inspiration and Quick Web Design Mockups Using iWeb.