前言:最近用mac开发环境了,自然一天到晚用coda,可总是有不顺的地方,搜到这篇文章感觉像看到了知音人,实在是解决了我不少疑难问题啊。外文针对的coda版本较低,我总结的针对版本是version1.7.3

coda快捷键操作总结如下:

1、切换工具
Cmd+1到6 ,如Cmd+1切换到Sites,Cmd+2切换到Edit

2、切换当前文档
Cmd+shift+{  与  Cmd+shift+} ,可以往前或往后切换当前文档

3、一行代码和整段缩进
Cmd+[  与  Cmd+],往前和往后缩进。

一行代码可用tab键完成,整段代码缩进前提是需要选中需要缩进的多行代码,这个功能让我找了好久,网上都说coda没这功能,甚至还出了第三方插件,也许低版本有这问题,至少现在可以用这个快捷键快速缩进。

4、代码导航

对于js和css来说代码导航非常实用,可迅速定位到函数,缺点是没有显示对象的功能,只能显示函数名

原文地址:

http://colincavaliere.com/blog/10-coda-tips-and-plugins

When beginning with web design or development you will need some sort of code editor to write the website. From there, you will also need software to refine images, a web browser to test your design, tools to store code clips, and lastly an FTP client. I have in the past relied heavily on Adobe Dreamweaver, as I am a big fan of the entire web design Adobe Suite. But, when it comes to writing a blog I find it cumbersome to write PHP for some reason in Dreamweaver.

I turn to Coda as an application that is capable of performing each of the tasks I need to perform throughout a web project. Coda is strictly Mac software. This software has come a long way since it came out, and there are many articles out there with long lists of “useful plugins”. I want to just give a user a quick insight into what can make Coda faster, easier to use which will result in less headaches in the end.

1.Switching Through Tools
One thing that Coda makes easy is keyboard shortcuts. They allow a user to switch through different modes by pressing “Command and 1-6″. This would be used if you want to switch between your editor, preview or sites, etc. easily without using the mouse.

2.Toggle through documents
To indent a line of code press “Command, Shift, and the Left or Right Brackets.
Example: Command Shift { or }

3.Line Indent
When you begin coding in CSS or HTML you will find that Coda will indent lines for you on the fly. If you need to indent a line manually press “Command” and the left or right { } to indent any line the cursor is on.

4. HTML Validation
Coda will validate you HTML on the fly as you are working or you can validate it once you are finished. Coda will give you a hint as to what needs to be fixed, and take you to the beginning where the error is when clicked. You can find this at the bottom of the Coda window.

HTML Error Hints

5. Setting up Sites
You can set up your website project within Coda and store them as different “Sites”. They can be automatically imported using Trasmit, but you have to be a user, or you can manually input the data to sync the sites. The homepage of the site will become the icon hanging on the Sites wall.

The sites that are set up have a remote and local folder linked to it, along with terminal settings if you also set that up. This is very useful, so when you save the file it will then update and publish to both file destinations. This will save you time over using Firefox FTP to load the files to the server each time you need to update the code.

6. Using Preview
I am a strong believer in using Mac tools, since they have always made my life easier as compared to other “easier” OS’s out there. I still rely on using Firefox web dev tools, and firebug most of the time but this will come in handy. This Preview will allow you to edit source code and see the changes without doing any editing to the document window.

7. Code Navigator
When you get into a coding project the tags, or elements can begin to pile up. This code navigator window can help you jump to specific tags within your document without having to scroll through and manually find them.

8. Coding Clips
Coda has a feature that allows you to store snippets of code, and insert them into a project on the fly. You can save snippets to use in any document.

9. Coda Books
From time to time I find it useful to have reference information available within Coda. It will come with 2 books for you to use right away, but you will want to find more books here.

10. Split Window
Coda gives you the opportunity to split multiple windows to view code on either horizontally or vertically.

You can right click on the file you wish to open and select “Split View” or use the keyboard shortcut: Command, Control, L.

There are many plugins available for Coda developed by third party vendors that you can install to increase functionality. I am currently using a few of them, and will report on them at a later time.
I hope these tips will get you started, there are plenty more so feel free to comment on what works for you as you explore.
-Colin

转载于:https://www.cnblogs.com/heiniuhaha/archive/2011/10/28/2227711.html

mac编辑器coda使用小贴条相关推荐

  1. mac上将视频变小_14+电话面试技巧实际上将为您赢得工作机会

    mac上将视频变小 这些行之有效的技巧已帮助像您这样的人将采访转变为Google,Facebook,Amazon等的优惠. (These proven tips have helped people ...

  2. 开机f8修复电脑步骤_电脑无法启动,屏幕显示白色小横条,怎么办?可收藏以备不时之需...

    在日常生活中很多人都需要用到电脑,用的时间久了,电脑往往都会出现这样或那样的问题.今天我们要分享的话题是"电脑右上角显示白色小横条"的解决方案,这是电脑的常见问题,赶紧收藏起来以备 ...

  3. 《剪花布条》:从花布条中尽可能剪出几块小饰条

    目录 一.题目 二.思路 1.代码中要使用的String类中的方法 (1)判断 s 中是否有 t (2)将 s 分割 2.递归判断 三.代码 详细注释版本 简化注释版本 一.题目 题目:剪花布条    ...

  4. mac上将视频变小_如何在Linux上将iPhone的.mov视频旋转90度?

    mac上将视频变小 The video files copied from iPhone is rotated by 90 degree when they are played on Linux. ...

  5. iphone隐藏底条_iphone隐藏底部小横条,无需越狱

    iphone更新的速度还是依然如此在每年的秋季发布会更新它的最新产品,跟新到现在已经为全面屏的机型,相比之前的屏幕尺寸,全面屏真的是很不错,虽然全面屏非常的出色,但也有很多小伙伴是不喜欢的,如上方的刘 ...

  6. 关于使用mac开发的一些小技巧

    关于使用mac开发的一些小技巧 一.mac OS Catalina(10.15)无法在根目录创建文件夹 二.Mac OS 10.13.1后删除了telnet命令 三.jd-gui安装(java1.8以 ...

  7. 能贴在 Windows 桌面上的跨平台清单工具:小黄条

    在 Todo 类应用出现之前,人们习惯的记事方法是拿一张便利贴贴在桌面上,记录下有哪些事情没有做.但是那样太麻烦了,也不方便管理,现在我在用Windows 下一款以便利贴风格为主的轻量级清单工具:小黄 ...

  8. Windows 软件推荐 - 小黄条 全平台同步桌面便签

    这是一款嵌入电脑桌面的Todolist工具,大小2.1M,也是免安装直接使用的,类似于电脑上的"便利贴". 简介 每天的工作任务有很多,这个时候该如何有序的安排呢?「小黄条」将手机 ...

  9. mac自带中文输入法提示条消失,如何找回?

    mac自带中文输入法提示条消失,如何找回? 1.代开活动监视器===>>找到简体中文输入法>>>>>双击>>>>>选择强制退出 ...

最新文章

  1. fullcalendar自定义搜索框_??这款搜索神器,真希望你早点使用,越早越好!有效提升学习和生活的幸福感!
  2. vb不能插入png图片_收藏备用!!VBA操作图片【插入导出删除】
  3. dylib java_使用单声道可执行文件捆绑.dylib文件
  4. C++虚调用及其调用的具体形式
  5. 关于power shell
  6. C#图片处理之:图片缩放和剪裁
  7. php httputils,Android 自定义网络加载工具类 HttpURLConnectionUtils
  8. jquery18 css() : 样式的操作
  9. lintcode 中等题:Palindrome Linked List 回文链表
  10. 新版谷歌浏览器80.0永久开启Flash
  11. python矩阵相乘函数_Python实现的矩阵转置与矩阵相乘运算示例
  12. 90后新晋父母的根据地——万物心选
  13. 根据两点经纬度计算方位角
  14. 计算机视觉领域的一些牛人博客,超有实力的研究机构等的网站链接
  15. 阿里研究院花几年心得终成趣谈网络协议,附技术官讲解
  16. 数值分析实验 实验3-1 牛顿下山法 python3实现
  17. 《卓有成效的管理者》笔记,第一章 卓有成效是可以学会的
  18. ASP.NET MVC 音乐商店 - 4. 数据访问
  19. Python--列表的操作
  20. 程序猿爆笑内涵段子 上班记得捂着嘴

热门文章

  1. 北漂、海漂的你,每个月发薪资支付生活成本后还剩多少钱
  2. 前端面试题-url、href、src
  3. MySQL实用第三方客户端工具收集
  4. swiftui_SwiftUI的混合包
  5. 三年经验前端社招——腾讯微保
  6. JavaScript 元编程
  7. webRTC——浏览器里的音视频通话 1
  8. hibernate 环境搭建测试
  9. 实现ModelDriver接口的功能(转)
  10. C++11模版元编程的应用