xcode 快捷键备忘

来源:互联网 发布:空知猩猩 编辑:程序博客网 时间:2024/05/18 13:23

1. ctrl + 6

    在xcode中打开当前文档搜索方法的快捷键


2. ⌘ + 0

    打开或关闭左侧的navigator侧边栏

    ⌥ + ⌘ + 0

    打开或关闭右侧的utility侧边栏


3. ⇧ + ⌘ + o

     打开open quickly


4.  ⌘ + T ----- 打开一个tabs

     ⌘ + w ----- 关闭一个tabs

     ⇧ + ⌘ + [  / ] ---- 在标签页中移动


5. ⌘ + e ---- 在文件内进行搜索

    ⌘ + g ---- 在搜索到的各个内容间进行切换


6. The CodeCompletion

   ⎋(esc) --- 不想要当前的code assistant

   ⌃ + space -- 弹出code assistance

   tab ---- 当code assistance跳出选项,code下面有虚线时,可以用其进行部分完成


7. ⌃ + a ---- go to the beginning of the line

    ⌃ + e ----- go to the end of line


8. 重命名the variable in the same scope

     1)将鼠标放到variable中间,variable下就会出现虚线

     2)按下⌘ + ⌃ + e , 就会将variable整个用虚线框住,然后进行修改


9. ⌥  + 鼠标点击variable, 鼠标就会变成?;显示当前variable的简介(如若是函数,会有简介)