20 Excellent Coda Tips

20 Excellent Coda Tips

I’ve been using Coda for a while now, and it’s become my web development application of choice. There are quite a few great web development applications out there (read “18 Wonderful IDEs for Windows, Mac, and Linux“) but if you’re a Mac user, Coda is easily one of the best.

Here are 20 excellent Coda tips to increase productivity that I’ve gathered during my use of Coda so far.


1. Set Your Preferences

There are a few things I had to change right away when I first started using Coda. These are all found in Coda’s preferences.

I never use a GUI CSS editor so I set Coda to always open CSS files with the text editor.

Coda Preferences General Tab

Under the Editor tab I’ve check-marked “Show line numbers” and “Use tabs” for indenting. You can hide/show line numbers by pushing Command + Option + L as well.

Coda Preferences Editor Tab

Under the Colors tab I’ve check-marked “Highlight Current line” to make it easier to see where the cursor is when switching back and fourth between applications.

Under the files tab I set files to open when double clicked instead of a single click. You may also need to setup your external editors. Coda automatically used Photoshop for the image formats I use.

Coda Preferences Files Tab

This is how Coda’s navigation bar at the top is by default. This is just a waste of space in my opinion although it is pretty.

Coda Nav Bar Big

I’ve changed mine to display only text titles and as small as possible. Since I don’t use the buttons I have that section minimized most of the time anyway. Instead I use the shortcut keys which I’ll cover next.

Coda Nav Bar Small

Aside from these changes, I’ve left everything else at the default settings. I’ve played around with the color schemes a little but I didn’t find anything I was really happy with so I’ve kept the default color scheme.


2. Switching Modes

If you aren’t using shortcut keys to change modes, now is a good time to learn. Pushing Command + 1-6 changes the mode you’re in. You can switch between your sites, editor, preview, etc. modes very quickly this way.


3. Navigating Open Documents

Pushing Command + Shift + Left or Right Bracket will navigate through your open documents.


4. Line Indenting

Coda automatically indents certain markup for you by default but you’ll still find yourself using the Tab button pretty frequently. Instead of jumping to the front of a line to indent it you can push Command + Left or Right Bracket to indent the line the cursor is currently in.


5. Clips and Text Inserts

Pushing Command + Control + C will open up Coda’s clips. Clips is a place to store snippets of code for quickly inserting into documents. You can save snippets for use in all documents or just site specific clips.

Coda Clips General

You can assign tags to quickly insert clips. For example, I’ve set “htmltemp” to insert an HTML 4.01 Template when I start a new document. I would type “htmltemp” into the blank document and push Tab to insert the clip. You can also insert a selection placeholder if the cursor needs to go somewhere specific in the clip after being inserted.

Coda Clips General

6. Inline HTML Validation

Validate your HTML while you’re working. Okay, if you’re experienced with HTML you might only want to use the validation feature when you’re ready to validate, otherwise you’ll have errors popup as you’re typing which can be pretty annoying.

Coda Inline Validation

Coda will tell you what needs to be fixed. Sometimes there is a little orange “snapback” button in the balloon that will take you to the beginning of the error when clicked.

Coda Inline Validation Example

7. Use Coda’s Hints

If you aren’t quite comfortable with HTML or CSS yet you can use Coda’s Hints feature to give you a little extra guidance.

Coda Hints

8. Use Coda Books

Highlighting something and pushing Command + ‘ will search the books you have available in Coda for the highlighted text. You can also just hold Command and double click a word you want to search for.

Coda's Books

9. Setup More Coda Books

Add more books to reference more information. You can read more about adding more Coda books here.

Coda Books

10. Block Edit Text

If you need to edit multiple lines you can do a block edit to do them all at once. You can highlight the text you want to edit and push Command + Shift + B or you can hold down Option and select the lines you want to block edit that way.

Block Edit Text

11. Shift Text

Highlighting text and pushing Command + Left or Right Bracket will shift the highlighted text left or right. This is great for shifting a whole section of markup for good looking markup formatting.


12. Preview in a Browser

You can preview files in Coda’s built in Preview mode (which uses the same engine as Safari) and while in that mode you can click the Preview in Browser button in the top right to open the file in the browser of your choice.

You can also push Command + Option + B while in any mode to open and preview the file in the default browser (Safari). When you make changes to the document you can use this shortcut to refresh the preview in the browser a little faster.

Coda Browser Preview

13. Use the Preview Tools

There are three tools included with Coda’s preview mode. These can be helpful for quick development issues (although I still find myself using Firebug :-P ).

Preview Tools

The left button lets you preview the source code. Kind of strange since you’re just in the preview mode and you could just switch back to the edit mode. However, this lets you edit the source code and preview the changes without actually editing the document. A great feature for testing and debugging.

The center button is the JavaScript log and the right button is the DOM hierarchy inspector. You can quickly find and see elements with this which is helpful if you aren’t sure what’s going on.

DOM Inspector

14. Split Windows

You can split windows using the icon in the top right of the window (the plus with lines). Pushing Option will change the direction of the lines meaning the split will change from horizontal to vertical (or the opposite if changed in preferences). You can also push Command + Control + L to split the window using shortcut keys (hold option to split the other direction).

Coda Split Windows

Within each window you can independently change modes.

Coda Window Previews

15. Open Separate Files in Split Window

You can also open separate files in split windows by right clicking files in the File Browser and selecting “Open in Split” or by dragging the file into an already open split. Now you can edit two separate files in a split window.


16. Hide/Show File Browser

Coda’s file browser is great but you won’t be using it the majority of the time so you can quickly hide/show it by pushing Command + Control + B.


17. Hide/Show Code Navigator

If you need a little help jumping around a document you can pop open the code navigator.

Code Navigator

A little hidden feature with Coda and the code navigator is that you can create “bookmarks” within your code to jump around your document faster using the code navigator. For example.

<!-- !THIS IS AN HTML BOOKMARK -->

This would create a bookmark in the code navigator that looks like this.

Bookmarks

Basically the bookmark is created with markup comments that use an exclamation point before the bookmark text. You can do this for HTML, CSS, PHP, etc.


18. Use the Find Features

Instead of using the code navigator to find things, I use the find features. Pushing Command + F opens the bar to search. Then just type in what you’re looking for and push enter. Coda will scroll the document to the first matching text and highlight it. There are several more shortcut keys for searching and several options you can change if needed. Using the find feature is much faster for me than using the code navigator since my hands never have to leave the keyboard.

Find

19. Quick Close Tag Shortcut

By default Coda will automatically close a tag once you’ve opened one. However, that doesn’t always work and I still find myself needing to close HTML tags manually all the time. Pushing Command + Option + . (period) will automatically close the current HTML tag (wherever the cursor is).


20. Get Plugins

While Coda has a lot of great features, there are many features developers still want. There are a few plugins available from third party developers that you can install to give Coda extra functionality. Here is a list of third-party plugins available.


Final Thoughts

These are some great tips for using Coda but like any great web development application, there are plenty more, so take some time to explore. With some practice, you can pick up tons of keyboard shortcuts that will keep your hands on the keyboard instead of wasting time mousing around. ;-)

For video tutorials, tips, guides and other information, visit Panic’s Coda Developer Zone.

If you have some great tips, feel free to share them with us by leaving a comment below.

This article was originally posted on the ThemeForest blog late last year. We are currently porting over some of the more popular articles to Nettuts+.

Note: Want to add some source code? Type <pre><code> before it and </code></pre> after it. Find out more
  • http://www.thatdeadpixel.com Mike

    Thanks for these. There are a couple that are new to me that I will be using from now on.

  • http://nine6design.com Nine6

    Great tips, I have been using Coda for a while now and some of these tips are going to make my life easier when working.

    -thanks

  • http://www.ecustom.ca/ Damon Bridges

    Sweet!

    I might get Coda, I don’t know. It sounds good though.

  • Carlos

    I wanna Coda for Windows! =(

  • http://davidbradley.me/ David Bradley

    I love Coda. <333 I don't think I could ever use anything else.

  • http://daniel-salazar.com Dan

    Coda rocks!

  • Batfan

    Nice article.

    How about a Notepad++ list?

  • Seth

    Coda is definitely nice and these are some useful tips. I may purchase it some day, but for now I’ll continue to use TextMate for the Mac :)

    • http://www.johnsthomas.com John

      I thought the same thing, recently I made the switch. Now TextMate seems like an antiquated toy. Having all your FTP/SSH/Local dev stuff in one place, and being able to access any of it from one app is incredible. There isn’t one feature I miss in TextMate that Coda doesn’t do or have.

      • Seth

        Yea, when I did the Coda 30-day trial or whatever, I really liked it. And that was before I knew about all the great features and learned about tips like this post. At the time I just didn’t want to spend the $100 bucks and just used Aptana Studio for the all in one stuff. Its pretty awesome and free. It was what we used in school. The program is a lil bulky tho, which is why I like Coda so much…clean and simple. I think I might purchase it though once I finish my current project b/c I’ll have some extra money then.

    • steamboatwillie

      Two words. Code folding. It’s the most glaring Coda omission. I want to love Coda, really I do. But seriously, no code folding and $100? Please. I’ll stick with BBEdit until Coda steps up.

      • keoshi

        I AM AGREE WITH YOU!!!!

        I really need that feature, I will pay for coda if panic hear this request!
        I prefer use dreamweaver only for code folding and tag match selection

      • http://parisvega.com/blog Paris Vega

        I totally agree. I wander if this is still not included in the core or plugins?

      • http://www.quevin.com Quevin

        Agreed. This is a must-have, and the reason why I still have BBEdit open while using Coda. Still can’t do without both.

  • http://www.stav.co Mathias M. Stav

    Great tips. I would like to add that the preview updates automatically when you work in split too, so it’s great for working with css.

  • http://www.johnsthomas.com John

    “I never use a GUI CSS editor so I set Coda to always open CSS files with the text editor.”

    Do you mean you hand-code CSS and don’t use a WYSIWYG editor, or that you don’t like CSS highlighting in code editors so you use plain text?

    • http://envexlabs.com Matt Vickers

      The CSS editor that coda uses is a cross between the normal editor and a WYSIWYG editor where you can choose from available options instead of having to remember them.

      Kinda of like what dreamweaver is for HTML.

      • http://www.johnsthomas.com John

        Ewe! I didn’t know that… so yeah, I go plain text too then.

      • brown

        You mean the auto-complete functionality? I think it’s a little misleading to compare that to a WYSIWYG. If you use Coda to do any programming (JavaScript, Ruby, PHP…) you’ll see the same functionality there. Many IDE’s do this and a lot of programmers find that it saves them a lot of time.

      • http://twitter.com/kimroen Kim Røen

        @brown

        No, it he is NOT talking about the auto-complete feature. There is a entirely self-contained mode for “making” css using drop-downs and such.
        You’ll know what I mean when you see it ;)
        (It’s called “CSS” – find it along the top with “sites”, “edit”, “preview” etc.)

  • http://www.kreviii.com blair

    I haven’t even used it yet, and I think coda is absolutely bonkers. I’m inspired to give it a go, cheers!

  • http::/loovia.com Satkrit

    Hmm.. I might get coda after i saw all these pretty nice features.

  • João Pinho

    This is the best editor ever!

    Thanks for the great tips!

  • http://sharpwebsolutions.com Damon Sharp

    Keep in mind that you need to be in HTML syntax mode and not PHP-HTML mode to get the validation mentioned above to work (#6). Makes sense, but I wish they could change that as I usually an working in the latter. This is an awesome app, no doubt about it. Can’t wait until v.2, hopefully with code folding.

    • http://ourtravellifestyle.com Colin Burns

      I agree, code folding is a must when using a small screen and it is something I really miss when using Coda.

  • http://www.iamiivo.com Iivari Leinonen

    Wow! This was a prefect start for my day at the office!

    Almost all features mentioned here were nothing new to me, since I’ve already found them via going through the interface or by accident.

    But the reason why I’m so glad about this article is that I never actually realized that Coda has a Code Navigator. I always felt so bad since I thought there is none and I actually tried Espresso for a while, just that specific feature. But I gotta say Coda is my choice.

    Great article!

  • Jay El Ehm

    Now would be a good time for Panic to have some 25% off code posted here …

  • jv

    Coda is great…. if they ever update it it will be fantastic.

    • http://field2.com Ben Dunkle

      My thoughts exactly, Im running Textwrangler until they release Coda 2…

      • http://alexparker.co Alex

        That’s too bad, you are missing out on soo much coolness.

  • http://www.helloeverything.co.uk David

    I’ve been using CODA for a couple of years now. I also, can’t wait for a new update! Code formatting would be nice!

  • http://www.dazydude.net Rik de Vos

    I want a MAC!!!

  • http://www.demogeek.com DemoGeek

    CODA rocks, no doubt about it. The only hold off in buying this great tool is missing the code folding feature which I can’t live without. Will buy it as soon as they have this feature up.

    • http://aaronbentley.co.uk Aaron Bentley

      agreed it needs code folding, but otherwise a really effective application, i did wonder what other web dev duties it could cover, such as a GUI for database work, but then again Querious is an awesome app for all database work.

  • http://connorcrosby.me Connor Crosby

    Thanks for the tips! I knew most of them, but the more I know, the better :)

  • Dian

    What is the difference between features no.4 and no.11 ..you’re talking about the same thing.

    • Kalessin

      +1 :)

    • http://twitter.com/kimroen Kim Røen

      He’s talking about shifting highlighted blocks of text VS shifting the line the cursor is in.

      But yeah, seems someone was looking for one more thing to make it to twenty :D

  • http://designluv.com/ Jon Bergan

    Some seriously awesome tips here. Even though I usa Coda daily, its always good to find new little gems hidden within the app. :)

    Thanks!

    JB

  • http://clickmojo.com Brujah

    Is it possible to switch from tabs for open files, to a workspace like espresso uses? I find it easier to navigate and manage many files open using the workspace. With tabs, they fall off the right side of the screen making it a little more difficult to locate, close, etc…

  • http://toolnames.com Dale Hurley

    I could not speak more highly of Coda. I paid $’000′s for CS5 and then it wouldn’t load, so I installed Coda till the IT dept could fix CS5 and I just feel in love with it.

    There is a few little issues, such as inline-block is not in the code suggest, and code hinting is a little buggy.

    The main thing that I love is the clips and plugins.

    Dale

  • winlwin
    • stephen

      thanks for this!

  • http://www.colddesign.it Giacomo Colddesign

    Thanks for sharing! It’s a very helpful article..!

  • Helio S. Junior

    Thank you SO MUCH ! I have been looking for a lighter alternative to Dw and was still skeptic about what Coda could do for me. Now I am much more confident I can buy it without any problem.

    ;-)

  • http://www.ademaweb.nl jeroen

    I love editing with coda! But I do miss a feature to collapse functions with a + – sign. Would keep things much easier.

  • http://drinksareonme.net Dale Cruse

    Good list. One thing I’m surprised I didn’t see is that when you’re in Preview mode, you can right click & select “Inspect Element” just like in Safari/Chrome. Almost eliminates the need to open in a browser & use Firebug.

  • http://shaneparkerphoto.com Shane Parker

    Coda kicks ass. One life-saver feature is the wildcard search button, it has saved me a ton of time.

    My only gripe with Coda is the crappy built-in FTP, it lacks so many features compared to other FTP servies (including their own Transmit product, which is, I assume, why they keep it sparse… so they’ll sell more copies of Transmit).

  • http://store.opencarter.com Opencart Templates

    Coda is fantastic editor. Whatever happened to Dreamweaver? I don’t even wanna know.

    Thanks for the tips.

  • http://www.jauhari.net/ Jauhari

    CODA is my favorite Code Editor.. easy to use and great support

  • http://www.slotzz.co.uk Simon

    I love Coda and the Panic are a great bunch of developers. One feature I really want is a shortcut to upload the open file to server. I contacted Panic about it and with in two hours they got back to me saying that it couldn’t currently be done but it is now added as a feature request. 2 hours! Awesome customer service

  • http://www.dropw.com Mosarrof

    I am using Coda in my new project its have many Features. So i like it as Thesis.

  • http://flickr.com/maha_ Mahavir Feitosa

    Great, great tips, didn’t know most of them, very useful, thanks a lot for sharing.

  • http://www.alexbuga.com Alex Buga

    Great article. Don’t forget about Zen Coding. It’s a text expander plugin that works with several coding apps. Try it out !

  • http://www.yummygum.nl Leon

    Although I knew most of these tips, it does remind me of how wonderful Coda really is. One tip I though I didn’t see in the post is making something a comment is by selecting the text/code you’d like to comment and pressing Command and / at the same time

  • http://www.stargraphicdesign.com Jessica

    BEST ARTICLE EVER

    I’ve been using coda for a long time, and still learned some new things :)

    thank you so much

  • brown

    Don’t forget SVN integration and Sites!

  • http://happypork.com Andre
  • Jim

    I cant find code folding. Is it not available in Coda?

  • http://www.pixelheap.com Eric

    Terrific article! Have been using Coda for a while and absolutely love it for coding. I will have to start using a few of these asap!

  • http://indiejack.me Jack Keller

    Coda has been my longtime favorite editor, I’ve tried this one and that one and nothing really comes close IMO. But I had to tailor things a tad for my keyboard oriented fingers. I’ve done this in other apps as well using the Sysprefs > Keyboard > Keyboard Shortcuts > Application Shortcuts

    First off, I was a longtime Firefox user and made the switch to Safari full time at V4 (got tired of the Memory issues in FF). But I was used to the Opt + Command + Left/Right Arrow for tab navigation, so I added it in the Application Shortcuts, this is also one I use often in Coda.

    Great tips here btw! A few in here I hadn’t thought about, and am trying out now!

  • Norbert

    +1 for Coda 2

  • http://www.adelante-web.com/ Clem

    Thanks, but all of these are in Coda’s documentation. Why dont speak about plugins. For example to Tab selected tabs with CMD – Tab, Or the excellent TEA for coda to construct XML or Html easely.
    One more : duplicate lines – which not work as well i would… but you have to test – : Command Line.

  • Jeffrey

    Though not exactly a hidden feature… CMD–Return toggles “Mega Zoom”. Don’t know why it took me so long to find it.

  • http://twitter.com/bkno Ben

    How can I get a code navigator bookmark to appear for a CSS comment?

    E.g., the equivalent of in CSS? It seems to ignore the usual /* css */ comments in the code navigator.

    • http://twitter.com/bkno Ben

      Oh I see it’s /* !bookmark */

  • http://mcometa.com mcometa

    Word wrap for text editor: CMD + ALT + W. :)

  • http://www.ckgd.net Chris

    On Dreamweaver you can ‘Put’ the page which will automatically upload any images you’ve used on the site. How is this done via Coda?

    Sorry if it’s really obvious. I just can’t seem to find out how to do it. :(