www.cocoachina.com/ios/20160708/16989.html
* cmd+0(hide/show navigarot), cmd+alt+0(h/s tool panel)
* cmd+ret(single editor), cmd+alt+ret (assist editor)
* cmd+alt+1-6 (tool panel tab)
* ^2(his list), ^5(list of cur folder)
* cmd+shift+y (s/h bottom panel)
* cmd+. (stop simulator)
* cmd+shift+O (quick open for cur proj)
//************************************************************************************
手指在键盘上飞速跳跃,终端上的代码也随着飞舞,是的这确实很酷。优秀的程序员总是这么一群人,他们不拘于现状,不固步自封,他们喜欢新奇的事,他们把自己发挥到极致。
指法攻略
放下您钟爱的鼠标吧,在前行之中它终会成为你的负累!
简记:
-
command 用来导航,控制导航区域
-
alt 控制右边的一些东西,比如Assistant Editor,utility editor
-
Control 编辑区域上的Jump bar的一些交互
Command 1~ 8: 跳转到导航区的不同位置
Command 0 :显示/隐藏导航区
Command Alt 1~ 6:在不同检测器之间跳转
Control Command Alt 1~4: 在不同库之间跳转
Control 1~ 6: 在Jump bar的不同标签页的跳转。
Command Alt 0: 显示/关闭工具区
Command + Enter: 显示标准单窗口编辑器
Command Alt Enter:打开Assistant editor
Command Alt Shift Enter: 打开版本控制编辑器
Command + Shift + Y:显示/隐藏调试区
Command + Shift + J,可展示当前你在工程导航器中打开的文件
Cmd + . 方便地暂停运行iOS模拟器
查找
使用 Command + Shift + Option + F 来打开 Find navigator 的替换模式,如果你嫌麻烦,也可以使用 Command + Shift + F 来打开 Find navigator 的查找模式,如果你还嫌麻烦,使用 command + 3 来打开 Find navigator,然后开启查找或者替换模式,选择一种最适合自己的方式就好。
快速打开
Command + Shift + O可以直接跳转到某个方法定义或者指定的代码文件。喜欢使用键盘但不喜欢使用鼠标的人会大爱这个快捷方式。键入第一个字母即可快速切换至某个文件或者找到特定的代码行。比如键入vDL,最先展示的结果是带有viewDidLoad()名的函数。
帮助
Command + Shift + 0 (Zero)打开文档和参考,键入代码中的某个关键字,文档提供了一些额外的资源和示例工程。当然也可以在变量、类或者方法名上执行Option+双击名称操作,从而更方便地跳转至文档。
在类或者方法名上执行Option + Left点击操作使用内联帮助可帮开发者快速学习类或代码片段的用法。如果点击了弹出视图底部的参考链接,那么就可以方便地跳转到Xcode提供的文档中。
个人比较中意Option+双击名称操作,毕竟来的直接。
代码片段
Xcode的代码片段(Code Snippets)创建自定义的代码片段,当你重用这些代码片段时,会给你带来很大的方便。
常用代码块
1.copy:
1
|
@property (nonatomic,copy) NSString *< #string#>;
|
2.strong:
1
|
@property (nonatomic,strong) < #Class#> *<#object#>;
|
3.weak:
1
|
@property (nonatomic,weak) < #Class#> *<#object#>;
|
4.assign:
1
|
@property (nonatomic,assign) < #Class#> <#property#>;
|
5.delegate:
1
|
@property (nonatomic,weak) id<< #protocol#>> <#delegate#>;
|
6.block:
1
|
@property (nonatomic,copy) < #Block#> <#block#>;
|
7.mark:
1
|
#pragma mark <#mark#> |
8.gmark:
1
|
#pragma mark - <#gmark#> |
9.warning:
1
|
#warning <#message#> |
10.ReUseCell:
1
2
3
4
5
6
|
static NSString *rid=< #rid#>;
< #Class#> *cell=[tableView dequeueReusableCellWithIdentifier:rid];
if (cell==nil){
cell=[[< #Class#> alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:rid];
} return cell;
|
11.initObj:
1
2
3
4
|
if (self=[ super init]){
< #init#>
} return self;
|
12.dataFill:
1
2
3
|
-(void)dataFill:(< #ModelClass#> *)<#model#>{
< #code#>
} |
13.MainGCD:
1
2
3
|
dispatch_async(dispatch_get_main_queue(), ^{ < #code#>
}); |
14.GlobalGCD:
1
2
3
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ < #code#>
}); |
15.AfterGCD:
1
2
3
|
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(< #delayInSeconds#> * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
< #code to be executed after a specified delay#>
}); |
16.OnceGCD:
1
2
3
4
|
static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ < #code to be executed once#>
}); |
黑技能(给代码排序)
使用Spotlight来搜索Automator,并打开它;然后点击File->New,并选择服务(service)一项;在Actions筛选栏,输入shell,然后双击运行shell脚本;在新添加的服务的菜单栏上,检查Output replaces selected text;将脚本内容切换至sort | uniq;同时按下command + s,将服务保存为 Sort & Uniq。
详情可以参考之前的文档:《mac上自定义脚本命令》
相关推荐
coding in delphi 2015 ,最新英文版。Well, here we are again.This book is to follow my first book, Coding in Delphi. I was humbled and pleased by the reception it received, and so I decided to give ...
Coding in Delphi ,群内朋友翻译的!
secure Secure Coding in C and C++.rar
Motion Vector Coding in the HEVC Standard.帧间运动估计一篇专业论文。
Assembly Language Coding in Color ARM and NEON 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
logical steps in Coding Projects in Python are fully illustrated with fun pixel art and build on the basics of coding, so kids can have the skills to build whatever kind of project they can dream up....
Each chapter in Coding Games in Python shows how to construct a complete working game in simple numbered steps. The book teaches how to use freely available resources, such as PyGame Zero and Blender,...
Go coding in go way —— 编程语言思维的形成 ; 根本:价值观决定思维和语言结构 核心:思维和语言结构影响语言的应用行为 反馈:语言的应用行为反过来持续影响/优化语言结构
High Throughput CABAC Entropy Coding in HEVC 这是一篇介绍HEVC中CABAC熵编码的论文,被IEEE顶级期刊收录,对HEVC初学者有很高的参考价值。
Coding_Games_in_Scratch(英文版)
Assembly Language Coding in Color ARM and NEON 英文azw3 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
Assembly Language Coding in Color ARM and NEON 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有...
Our evaluation shows that AdapCode uses up to 40% less packets than Deluge in large networks. In addition, AdapCode performs much better in terms of load balancing, which prolongs the system lifetime...
图书为英文版的,但是是原版的,很清晰,都是很简单的英文,很容易理解
logical steps in Coding Projects in Python are fully illustrated with fun pixel art and build on the basics of coding, so kids can have the skills to build whatever kind of project they can dream up....
Coding in Style 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
Secure Coding in C and C++, Second Edition, identifies and explains these root causes and shows the steps that can be taken to prevent exploitation. Moreover, this book encourages programmers to adopt...
一篇很好的英文资料,描述了CABAC的原理等
DK出版的英文原版儿童书籍Coding Projects in Python和Coding Games in Python,Python是小学生学习编程的首选语言,适合家长指导孩子上机编程。
Coding Projects in Python 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或...