天天看点

技术

下面是ios开发人员使用xcode进行开发ios app的常用快捷键分享。

1 option + cmd + 向上箭头  m/h文件切换

2 ctrl + a  光标移动到行头

3 ctrl + e  光标移动到行末

4 command + g 查找下一个

5 command + w 关闭一个文件

6 option + command + m 窗口最小化

7 command + /   注释

调试:

8.alt + command + y  degug 调试

9 alt + command + r  run运行

10 alt + command + p 到下一个断点

11 shift + cmd + o  执行下一步(step over)

12 shift + cmd + i   执行进入函数(step into)

shift + cmd + t  step out

13 command + /  取消断点

14 command + shift + f 查找

15 command + enter  等于bulid and debug

 control+f  : 在同一行上将光标向右移动

control+b : 在同一行上将光标向左移动

control+p :  将光标移动到前一行

control+n :  将光标移动到后一行

control+a :   将光标移动到本行的行首

control+n :   将光标移动到本行的行尾

control+t :   将光标两边的字符对调

control+d :   删除光标右边的字符

control+k :   删除光标所在行 光标后面的代码,便于你重写行尾代码

control + l :将光标插点置于窗口正中。

如何对代码进行首行缩进?

第一种方法:选中需要缩进的代码,按住control键后单击光标,出现pop菜单,然后选择re-indent selection。

第二种方法:选择需要调整的代码,同时按下command+[ (左移动代码)或 command+](右移动代码)。

继续阅读