其实都是设置里的,整理成文件版,方便搜索
XCode相关:
关于XCode 可设
偏好设置 command+,清空缓存 可设隐藏xcode command+h隐藏其它 command+option+h显示全部 可设退出xcode command+q文件相关:
新建项目 command+shift+n
新建文件 command+n新建空文件 command+control+n打开 command+o在新窗口中打开 command+option+o快速打开 command+shift+d / command+shift+alt+d (不知区别是什么)清空最近打开文件 可设清空最近打开项目 可设Get Info command+i显示检查器? command+option+i (效果和Get Info一样,不知区别)关闭窗口 command+w关闭所有窗口 command+option+w关闭当前项目 command+control+w关闭当前文件 command+shift+w保存文件 command+s保存所有文件 command+option+s另存为 command+shift+s复本另存为 command+option+shift+s还原到保存时状态 command+u创建快照 command+control+s (保存文件快照,以后可进行对比修改情况)显示快照 可设 (File->Snapshots)打印 command+p编辑相关:
撤销 command+z
重复 command+shift+z剪切 command+x复制 command+c粘贴 command+v粘贴并匹配格式 command+option+shift+v删除 可设全选 command+a复制(Duplicate) 可设重构 command+shift+j (选中方法名)转换为objc2.0 可设=================字体====================显示字体 command+t粗体 可设斜体 可设下划线 可设变大字号 可设变小字号 可设Kern相关 可设Ligature相关 可设Baseline相关 可设显示颜色 可设复制样式 command+option+c粘贴样式 command+option+v=================文本====================左对齐 command+{ 右对齐 command+}居中 command+竖线 (不知竖线是哪个,没试出)Justify 可设(功能未知)左缩进 command+[右缩进 command+]Show Ruler 可设(功能未知)Copy Ruler command+control+cPaste Ruler command+control+vBalance 可设 (第一次,选中语句,第二次,选中方法体)重置缩进 可设=================查找==================== 项目中查找 command+shift+F在项目中查找选定文本 可设查找 可设查找替换 command+control+f查找选定文本 可设查找下一个 command+g查找上一个 command+shift+g隐藏查找栏 可设替换 可设替换全部 可设替换并查找下一个 可设替换并查找上一个 可设用选择的查找 command+e用选择的替换 command+control+e跳到光标处 command+j跳到定义 可设=================排序====================按名 可设按类型 可设========================================添加书签 command+dgo to line command+l下一个填充 control+.填充列表 option+esc下一个占位符 control+/ (和tab相同)Edit All in Scope command+control+t (功能未知)================插入宏=================cc++htmljavaobjective-c宏规范=================拼写====================显示拼写和语法 command+shift+;检查拼写 command+;输入时检查拼写 可设特殊符号 command+option+t视图相关:
右上角详情搜索 command+option+f
缩放编辑窗口 command+shift+e缩放编辑窗口满屏 command+option+shift+e折叠 command+control+左箭头屏开 command+control+右箭头屏开所有 control+u折叠方法 command+control+上箭头展开方法 command+control+下箭头折叠注释块 command+control+shift+上箭头展开注释块 command+control+shift+下箭头焦点跟随 command+option+control+f==============信息提示====================隐藏问题 command+shift+h所有问题 可设仅错误和警告 可设仅错误 可设仅Analyzer结果 可设显示断点 可设==================文本====================tab设置 可设是否自动换行显示 可设行结束 可设显示控制字符 command+shift+6显示空格 可设==============智能分组====================所有文件 可设Targets 可设Exeutables 可设书签 command+shift+mSymbols 可设搜索结果 可设===================布局====================显示导航栏 可设隐藏状态栏 可设显示收藏栏 可设显示页数控制 可设===========================================前进 command+option+右箭头下一文件 command+option+shift+右箭头返回 command+option+左箭头上一文件 command+option+shift+左箭头切换头/源文件 command+option+上箭头组树中定位 command+option+shift+上箭头显示工具栏 可设自定义工具栏 可设===================项目====================项目中标签切换 command+数字0类浏览 command+shift+c重命名项目 可设新组 command+option+n分组 command+option+g撤销分组 command+option+shift+g新建智能组 可设添加项目 command+option+a添加文件到项目 可设新Target 可设升级所有Targets 可设升级当前Target到ipad 可设================New Build Phase====================没做测试不多介绍,只放出内容New Copy Files Build PhaseNew Run Script Build PhaseNew Copy Headers Build PhaseNew Copy Bundle Resources Build PhaseNew Compile Sources Build PhaseNew Link Binary With Libraries Build PhaseNew Build Java Resources Build PhaseNew Build Resource Manager Resources Build Phase================================================新的自定义可执行文件 可设设置当前Target 为空 可设Set Active Architecture 为空 可设设置当前sdk 为空 可设设置Build配置 为空 可设Set Active Executable 为空 可设编辑项目设置 可设编辑当前Target command+option+e编辑当前可执行文件 command+option+x===================Build========================Bulid Results command+shift+bBulid command+bBuild and Analyze command+shift+aBuild and Archive 可设Build and Debug command+enterBulid and Run 断点关 command+rBuild and Debug 断点开 command+yClean command+shift+kClean All Targets 可设下个Build警告或错误 command+=前个Build警告或错误 command+shift+=Compile command+kPreprocess 可设Show Assembly Code 可设Touch 可设=======================代码导航及编辑================注释 command+/文件首行 command+上箭头文件末 command+下箭头行首 command+左箭头行末 command+右箭头上一单词 option+左箭头下一单词 option+右箭头上一拆分单词 control+左箭头下一拆分单词 control+右箭头中间显示光标位置 control+l方法组列表 control+2删除前一单词 option+delete删除此行光标前所有内容 control+delete跨行选取 command+option+鼠标拖动Run相关:
Debug command+option+enterRun 断点关 command+option+rDebug 断点开 command+option+yRun with Performance Tool (Shark) 可设Stop command+shift+enterAttach to Process (Process ID) 可设Debugger command+option+yMini Debugger command+control+左斜上箭头(不知咋按)Console command+shift+rClear Console command+option+control+r===================Show========================断点 command+option+bExpressions 可设Global Variables 可设Memory Browsers 可设Shared Libraries 可设===================Debugger Display========================纵布局 可设横布局 可设Datatips 可设Step Controls 可设Source Only 可设Source And Disassembly 可设Disassembly 可设===================Variables View========================User Data FormattersShow Type ColumnPrint Description to ConsolePrint Roots to ConsolePrint Referers to ConsoleWatch VariableView Value asNaturalHexadecimalOSTypeDecimalUnsigned DecimalOctalBinaryEdit ValueEdit Summary FormatView in Memory BrowserView in WindowView in Expressions Window===============================================停用断点 command+control+\停止objc例外 可设================Manage Brakpoints=================当前行插入断点 command+\Add Symbolic Breakpoint 可设Add C++ Exception Breakpoint 可设启用当前行断点 command+option+\导入断点 可设导出断点 可设===============================================Fix 可设Pause command+option+pStep Into command+shift+iStep Into Instruction command+option+shift+iStep Over command+shift+oSetp Over Instruction command+option+shift+oSetp Out command+shift+tNext Thread command+option+control+上箭头Previous Thread command+option+control+下箭头Sync with Debugger 可设Stop on Debugger()/DebugStr() 可设Enable Guard Malloc 可设Desing相关:
======================Class Model===================
Quick ModelGo to DeclarationGo to DefinitionGo to DocumentationAdd Comment======================Data Model===================ImportAdd Model VersionSet Current VersionAdd EntityAdd Attribute command+control+aAdd Fetched PropertyAdd Relationship command+control+rAdd Fetch Request Copy Method Declarations to ClipboardCopy Method Implementations to ClipboardCopy Obj-C 2.0 Method Declarations to ClipboardCopy Obj-C 2.0 Method Implementations to Clipboa======================Mapping Model===================Update Source ModelUpdate Destination ModelAdd Missing Property Mappings===================================================Show Model Browser command+control+bCollapse CompartmentsExpand CompartmentsRoll Up CompartmentsRoll Down Compartments======================Diagram=======================Bring to Front command+control+shift+fSend to Back command+control+shift+bAlign Top EdgesAlign Bottom EdgesAlign Left EdgesAlign Right EdgesAlign Vertical CentersAlign Horizontal CentersMake Centered ColumMake Centered RowMake Same WidthMake Same HeightSize to FitLock command+control+lUnlock command+shift+control+lZoom in command+control++Zoom Out command+control+-Zoom to Fit command+control+=Turn Grid OnShow GridShow Page BreaksForce-Directed Layout command+control+gHierarchical Layout command+control+hWindow相关:
最小化 command+m
全部最小化 command+option+mZoomBring All to FrontDefaultsOrganizer command+control+oActivityHelp相关:
开发文档 command+option+?
快速帮助 command+control+?Xcode帮助 command+?Welcome to XcodeXcode Quick StartXcode Release NotesFind Documentation for Selected TextOpen man Page