# xcode-tips **Repository Path**: mirrors_jaywcjlove/xcode-tips ## Basic Information - **Project Name**: xcode-tips - **Description**: Archive of the collection of Xcode tips I shared on x - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-09-06 - **Last Updated**: 2025-09-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [English](README.md)
### 💡 切换编辑窗口 快捷键 ⌘ + J 配合剪头键 ◀▲▼▶ 切换编辑窗口 https://github.com/user-attachments/assets/7b405d04-522e-44cd-9839-04f1cd409004?title=切换编辑窗口&rehype=video ### 💡 代码快速导航 将鼠标悬停在小地图上时按住 ⌘ 会显示所有方法变量名的索引,您可以快速导航到它们 https://github.com/user-attachments/assets/d3f57263-a82c-435a-a759-0747fcf1b41d?title=代码快速导航&rehype=video ### 💡 代码片段生成函数 鼠标选中一段视图代码,鼠标右键唤出菜单,选择 `Refactor` -> `Extract to Methoad` 生成函数编辑函数名称 https://github.com/user-attachments/assets/9f444b4f-133a-4827-b6c1-267d23b8b8fe?title=代码片段生成函数&rehype=video ### 💡 格式化为多行 选中一行代码,使用快捷键 Control + m 格式化为多行代码 https://github.com/user-attachments/assets/bcee662f-4213-41f8-befe-daa3b315b31e?title=格式化为多行&rehype=video ### 💡 上/下移动一行或者多行代码 移动选择的多行代码,或者移动光标所在行的代码,上移代码:Cmd + Option + [,下移代码:Cmd + Option + ] https://github.com/user-attachments/assets/c27fd9ac-c1f2-4270-82b2-c43f8dc8def5?title=移动一行或者多行代码&rehype=video