美文网首页程序员
Xcode IDE 最常用快捷键

Xcode IDE 最常用快捷键

作者: so_bright | 来源:发表于2018-01-17 18:17 被阅读0次

    注释

        /**

         这里是函数的说明,这个标准的注释使用"command+option+\"三个组合键调出

         @param title 这是参数1的描述

         @param description 这是参数2的描述

         @return 这是返回值的描述

         */

    Help

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

        option+双击:打开选中符号的帮助文档。

    View Navigator

        command+0:Show/Hide left tool panel(Navigator Area)

        command+1-8:Project/Symbol/Find/Issue/Test/Debug/Breakpoint/Report Navigat

    View Editor Organization

        control+1:Show Related Items(例如Superclasses/Subclasses、Callers/Callees、Protocol Implementor/Implemented、Includes/Included By)。可输入实时搜索匹配。

        control+5:Show Group Files(当前文件夹内的所有文件)。可输入实时搜索匹配。

        control+6:Show DocumentItems(当前文件的Symbols)。可输入实时搜索匹配。

    Eidtor Window/Tab Switch

        command+shift+[/]:切换标签页

        单/双指左右滑动(control+command+←/→):在单标签页打开的多个文件间切换(Go Back/Forward)

    Symbol Jump

        command+L:跳转到指定行。

        shift+command+O:Open Quickly,快速全局查找文件、符号,非常常用!

        control+command+↑/↓:切换头文件/实现文件(switch between a source file (.m,*.mm,*.cc) and the associated header file(.h),Jump toPrevious/NextCounterpart)。

    Code Folding

        option+command+←/→:折叠当前代码块,包括@interface …@end、@implementation …@end

        option+shift+command+←/→:折叠该文件内所有代码块(方法/函数:Methods&Functions}

        control+shift+command+←/→:折叠当前注释块(/*Comment Blocks*/)

    Text Editing

        command+[/]:向前/向后缩进(Shift Left/Right)

        option+command+[/]:将当前光标所在行代码上移/下移一行(Move Line Up/Down)

        command+/:以双斜杠(//)注释选中的代码,再此按下可取消

    Find & Replace

        shift+command+F(command+3):在Find Navigator中全局查找。可在[Preferences-General]中设置Find Navigator Detail的显示行数(当Navigator Area较窄挤压时)。

    Others

        command+ T : 新建标签

    相关文章

      网友评论

        本文标题:Xcode IDE 最常用快捷键

        本文链接:https://www.haomeiwen.com/subject/sauuoxtx.html