mac编辑器coda使用小贴条

前言:最近用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

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.
Sites
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.
Preview

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.
CodeNav

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.
Clips

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.
Splitwindow
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

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/297918.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

我在 GitHub 上发现了一款骚气满满的字体!

全世界只有3.14 % 的人关注了爆炸吧知识转自:量子位,作者:栗体这个字体叫 Leon Sans,表面看去平平无奇。但事实上,它并不是普通的字体,体内蕴藏着魔力。Leon Sans 最特别的地方在于,字体是由代码…

PHP 接收 UDP包_php只能做网站?基于swoole+websocket开发双向通信应用

前言众所周知,PHP用于开发基于HTTP协议的网站应用非常便捷。而HTTP协议是一种单向的通信协议,只能接收客户端的请求,然后响应请求,不能主动向客户端推送信息。因此,一些实时性要求比较高的应用,如实时聊天、…

OSI模型数据链路层为什么需要分层?

1.何为数据链路层的(DATA LINK LAYER)的MAC子层和LLC子层? MAC子层的主要功能包括数据帧的封装/卸装,帧的寻址和识别,帧的接收与发送,链路的管理,帧的差错控制等。MAC子层的存在屏蔽了不同物理链…

WPF 实现火炬效果

WPF开发者QQ群: 340500857 | 微信群 -> 进入公众号主页 加入组织欢迎转发、分享、点赞、在看,谢谢~。 01—效果预览02—代码如下一、FireControl.cs 代码如下using System; using System.Collections.Generic; using System.Linq; using System.Tex…

08 comet反向ajax

一&#xff1a;HTTP协议与技久链接分块传输---->反向ajax 反向ajax又叫comet, server push,服务器推技术. 应用范围: 网页聊天服务器,, 新浪微博在线聊天,google mail 网页聊天,都有用到. 原理: 一般而言, HTTP协议的特点, 连接<->断开. 具体什么时间断开? 服务器响应…

男朋友出的性格测试题

1 一家人出去玩了三天&#xff0c;把猫忘在家里了&#xff01;2 嗷呜3 竟然毫无违和感4 叫你一声造句鬼才不过分吧5 秋天原来是这样来的嘛~6 当代嗑cp网友现状5 现在的年轻人都哪里学来的这么多招数内容自沙雕男友的日常你点的每个赞&#xff0c;我都认真当成了喜欢

杂项记录

http://poj.org/ 算法 线性代数 编译原理 算法导论 算法&#xff08;软件设计师教程&#xff09; 《ACM国际大学程序设计竞赛亚洲区预选赛真题题解》转载于:https://www.cnblogs.com/end/archive/2011/10/29/2228940.html

linux连接建立的时间,用timedatectl在Linux中检查当前时区及更改时区(创建符号链接来更改时区)...

本文介绍如何在Linux操作系统中设置或更改时区的方法&#xff0c;可以使用timedatectl&#xff0c;包括通过创建符号链接来更改时区。前言时区是具有相同标准时间的地理区域&#xff0c;通常&#xff0c;时区是在操作系统的安装过程中设置的&#xff0c;但以后可以轻松更改。对…

python能不能自动写代码_微软最强 Python 自动化工具开源了!不用写一行代码

1. 前言最近&#xff0c;微软开源了一款非常强大的 Python 自动化依赖库&#xff1a;playwright-python&#xff0c;它支持主流的浏览器&#xff0c;包含&#xff1a;Chrome、Firefox、Safari、Microsoft Edge 等&#xff0c;同时支持以无头模式、有头模式运行&#xff0c;play…

mapbox 导航_狂甩不掉,骑行最稳手机支架!一体式安装太方便,秒变单车导航仪...

发对于骑行爱好者而言&#xff0c;对手机支架的稳固性有很高的要求&#xff0c;同时支架体积不能太大&#xff0c;对手机本身也要有一定的保护性&#xff0c;手机安放好&#xff0c;骑行才能更自在&#xff01;一个舒适的手机支架&#xff0c;对于业务繁忙或者像小渣一样的路痴…

Docker小白到实战之Docker网络简单了解一下

前言现在对于Docker容器的隔离性都有所了解了&#xff0c;但对容器IP地址的分配、容器间的访问等还是有点小疑问&#xff0c;如果容器的IP由于新启动导致变动&#xff0c;那又怎么才能保证原有业务不会被影响&#xff0c;这就和网络有挂钩了&#xff0c;接下来就大概说说。正文…

(三)java的数据类型

java是一种强类型的语言&#xff0c;所谓强类型&#xff0c;意味着每个变量都要有确定的类型&#xff0c;每个表达式也要有明确的类型&#xff0c;包括传递的某些参数。java中从大的方面分有两大数据类型&#xff0c;分别是基本数据类型和引用数据类型&#xff0c;基本数据类型…

遍历DataTable内存数据的三种方法性能对比

http://www.cnblogs.com/guowei1027/archive/2009/12/15/1624699.html 前几年曾经碰到一个生成递归树形菜单的功能&#xff0c;由于系统比较庞大&#xff0c;有300-400个菜单项&#xff0c;把这些菜单一次性递归加载&#xff0c;的确需要耗费一些时间。 当然若是动态加载什么的…

^_^家园游记^_^

j 你梦想中的家是怎么家的呢&#xff1f; 是鲁宾逊漂流记中那样&#xff1a;一个荒岛&#xff0c;一片青山绿水的悠闲自在&#xff1f; 还是让人流连忘返的色彩斑斓&#xff0c;鳞次栉比&#xff0c;浓浓的欧式典雅&#xff1f; 或是奔放自由的乡村田园&#xff0c;精…

sigar如何获取linux的buffer内存,Linux 下使用Sigar 获取内存信息

上一篇文章介绍了linux下的sigar 库,并使用sigar 库来获取cpu 使用率,本文在这里介绍一下如何使用sigar 库获取内存信息.和cpu 一样,sigar中有和内存相关的结构体sigar_mem_t,我们来看一下结构体原型:typedef struct {sigar_uint64_tram,total,used,free,actual_used,actual_fr…

如何将手机投屏到电脑_手机如何投屏到电脑上?详细教程看这里,手机投屏

手机再大的屏幕&#xff0c;也没有手机投屏到电脑、电视的体验爽。那么哪款投屏软件好用&#xff1f;又如何使用呢&#xff1f;下面小编给大家介绍下金舟苹果手机投屏软件&#xff0c;一起来看看如何将手机投屏到电脑上&#xff0c;详细步骤如下。第一步、首先&#xff0c;在电…

inputstream是否一定要close_汽车加装行李架后,总被交警拦下,类似改装,是否一定要备案...

其实改装不是儿戏&#xff0c;有些部位是一定不能触碰的&#xff0c;汽车“轻改”后担心上路被交警处罚&#xff0c;哪些是不能触碰的“红杠杠”&#xff0c;汽车加装行李架后&#xff0c;总被交警拦下&#xff0c;类似改装&#xff0c;是否一定需要备案&#xff0c;是我们今天…

不好意思,爱因斯坦这次,又对了!

▲ 点击查看在科学界中&#xff0c;有一个非常著名的概念&#xff0c;叫做后设认知。官方解释是&#xff1a;人们是如何对自己的思维模式进行反思。打个简单的比方&#xff1a;你学习或者自己孩子学习的时候&#xff0c;会不会经常出现一道数学题反复做错的情况&#xff0c;明明…

如何正确处理 .NET 文件的 `File in use by another process` 异常 ?

咨询区 Dawsy&#xff1a;我的项目中有一个需求&#xff0c;它需要不断的访问一个文件&#xff0c;很多时候这个访问逻辑都是正常的&#xff0c;但有时候访问太快&#xff0c;会抛出如下异常&#xff1a;"File in use by another process"为了能找到其解决方案&#…

live555学习笔记7-RTP打包与发送

七 RTP打包与发送rtp传送开始于函数&#xff1a;MediaSink::startPlaying()。想想也有道理&#xff0c;应是sink跟source要数据&#xff0c;所以从sink上调用startplaying&#xff08;嘿嘿&#xff0c;相当于directshow的拉模式&#xff09;。看一下这个函数&#xff1a;Boole…