zoukankan      html  css  js  c++  java
  • Xcode配置及快捷键

    一、基本配置

    1. 背景配置: 
      Xcod->Preference->Fonts&Colors 选择 Background 配置为比较养眼的淡绿色背景 RGB:227,237,205
    2. 字体配置: 
      样式选择Default,选择全部选项,点击Font,设置一个自己适合的字号: 
      替代文字
    3. Show Line Numbers:在gutter中显示行号。
    4. Code folding ribbon:显示折叠ribbon。
    5. Page guide at column:显示一行最多支持80个字符的提示分割线。 
      替代文字

    二、常用快捷键

    代码阅读 
      (1)View Navigator 
        command+0:Show/Hide left tool panel 
        command+1-8:Project/Symbol/Find/Issue/Test/Debug/Breakpoint/Log Navigator 
        option+command+0:Show/Hide right tool panel 
        option+command+1-6:show the file/quick help inspector

    (2)View Editor Organization 
           control+1:Show Related Items(例如Superclasses/Subclasses、Callers/Callees、Protocol Implementor/Implemented、Includes/Included By)。可输入实时搜索匹配。 
           control+2:Show Previous/Next History。可输入实时搜索匹配。 
           control+4:Show Top Level Items。 
           control+5:Show Group Files(当前文件夹内的所有文件)。可输入实时搜索匹配。 
           control+6:显示属性、方法结构

    (3)Symbol Jump 
            command+点击Editor中选中的符号:跳转到符号定义(jump to definition)。 
            control+command+J:跳转到指定符号的定义处或实现处(Go to Declaration/Definition)。

    (4)Help 
           option+点按:查看选中符号的帮助提示(Quick Help for Selected Item)。

    2.代码编辑 
    (1)File | New 
         control+command+N:File | New | Workspace 
         shift+command+N:File | New | Project

    (2)Text Editing 
         command+[ / ]:向前/向后缩进 
         option+command+[/]:Move Line Up/Down 
         command+/:注释选中的代码

    (3)Eidtor Window/Tab Switch 
         command+shift+[/]:切换标签页

    (4)Code Folding 
        option+command+←/→:折叠当前代码块 
        option+shift+command+←/→:折叠该文件内所有代码块(方法/函数)

    (5)Console & Scheme 
       shift+command+Y:显示控制台(Show/Hide the debug area) 
       option+command+R:编辑配置(Edit Scheme)

    (6)Auto Completion 
       esc(command+.):就当前输入上下文呼出/隐藏Auto

    (7)Find & Replace 
        command+F:当前文件查找。 
        option+command+F:当前文件替换。 
        shift+command+F :全局查找。 
        option+shift+command+F:全局替换。

    3.运行调试 
    (1)Console 
       shift+command+Y:显示控制台(Show/Hide the debug area)

    (2)Build 
       command + B:构建(Buid)

    (5)Run 
       command + R:运行(Run),可能会先编译。若按下control直接运行上次build的product(Run Without Building)。 
       command + .:停止运行(Stop)

    (6)Breakpoint 
         command + :当前行设置/取消断点;通过鼠标点击蓝色断点来启用/禁用当前行断点。 
         command + Y:全局激活或禁用所有的断点,激活进入调试模式(此时断点蓝色可见)。

    (7)Debug 
         F6:下一步(Step Over),逐过程单步调试,不进入函数体。 
         (fn+)F7:进入(Step Into)函数体。可能与多媒体键有冲突,故需要fn辅助。 
         (fn+)F8:跳出(Step Out)函数体。可能与多媒体键有冲突,例如呼叫iTunes,故需要fn辅助。 
         control+command+Y:逐断点(continue)继续执行。

  • 相关阅读:
    How To Move a MySQL Data Directory to a New Location on Ubuntu 16.04
    Mysql Docker Container Command
    svg_png
    png格式图片转为svg格式图片
    Ubuntu Server如何配置SFTP(建立用户监狱)
    ubuntu用户添加adduser, useradd并给予sudo权限
    Setup FTP server on Ubuntu 14.04
    Ubuntu Server 16.04.1系统安装
    1.Linux下生成密钥
    Linux查看设备命令
  • 原文地址:https://www.cnblogs.com/dpf-learn/p/14053317.html
Copyright © 2011-2022 走看看