Xcode实用快捷键以及Mac一些常用指令

快捷键:
1、切换头文件和m.文件,很实用
Command + control+ 上下箭头键

2、go back,回退,就是回到你上次打开的页面。
control+command+ 左箭头

3、go forward 回到你前面打开的页面
control+command+ 右箭头

4.文档内搜索
Command + F: 搜索
Command + G: 搜索下一处
Shift + Command + G: 搜索上一处

5.断点调试:
F6 : Step Over (跳过当前行)
F7 : Step Into (跳进当前行的方法)
F8 : Step Out (跳出当前方法)
Command + Control + Y : 跳过当前断点,继续执行

5、代码缩进
左缩进 command+[
右缩进 command+]
 
6、代码上下移动
上移 command+Alt +[
下移 command+Alt +]

7. Command + , (逗号):打开Preferences
 
8. Command + Q   退出Xcode
 
Mac常用操作指令:
显示隐藏文件夹:defaults write com.apple.finder AppleShowAllFiles -bool true
隐藏隐藏文件夹:defaults write com.apple.finder AppleShowAllFiles -bool false
 
posted @ 2016-04-07 16:46  Huster2009  阅读(210)  评论(0编辑  收藏  举报