Coda Code Editor
SFTP Set Up
1. Source Control directories
It is most useful to separate out where your Git files live versus any other files.
Using `Sites` is a good place—inside of that, create a `/themes` directory.
2. Add the Servers We Use
(Coda calls them ‘sites’)
** It is important to set the local and remote directories equally (both are a folder containing themes folders). This will make “publishing” with Coda 100% easier and faster (more below).
nm for theme edits (with Git)
Site Tab:
Remote Root: `/var/www/sandboxes/id/current/wp-content/themes`
Local Root: `/Volumes/Macintosh HD/Users/your-user/Sites/themes`
Server Tab:
Protocol: SFTP
Server: ist-wp-app-devl101.bu.edu
Your FTP Username and password
Static files directories ( /webteam, /bostonia issue files, etc.. )
Site Tab:
Remote Root: `/afs/.bu.edu/cwis/webuser/web/`
Server Tab:
Protocol: SFTP
Server: webdev.bu.edu
Your FTP Username and Password
3. Publishing
Since you set up your local and remote directories equally, we can edit files, save them, and then publish them at the click of a button or keyboard shortcut ( ⌘ + Control + P ).
If you haven’t done it yet, look through `2. Add the Servers We Use` section above.
4. Show Invisible Characters
Showing Invisible Characters (helps for tabs vs spaces)
Go to `Coda > Preferences > ‘Editor’ Tab`
Check `Show Invisible Characters`
Check `Show Indentation Guides`
Make sure `Tab Width` is set to `4` and `Use spaces instead of tabs` is NOT checked.
5. Set Some Upload Rules
We don’t have to upload some directories, like `.node-modules` and `bower_components`, so we can set some rules to tell Coda to ignore these.
TBD
Recommended Plugins
Coda has a great repository of plugins. Here are some recommended ones:
- White Out – Automatically trims whitespace from the end of files on save.
- WordPress 4.4 Additions – Auto-completion for WordPress 4.4 functions/constants.
- Sort 1.0 – Alphabetizes lines of code. Note: Properties prefixed with
- (e.x. -webkit-transition) will be moved to the top of a group of properties with this plugin. Code Climate looks for properties to be organized by the first letter, not the first character.