Common shortcuts for iOS development and ios shortcuts
2. Basic Xcode shortcut
Create a project Shift + CMD + N
Create a file CMD + N in the project
Run CMD + R
Compile CMD + B
Stop running CMD +.
Clear cache Shift + CMD + K
Left indent CMD + [
Right indent CMD +]
Close project CMD + W
Terminate the program CMD + Q
Annotate or uncomment CMD +/
Automatic prompt list ESC
3. Common keyboard shortcuts for Simulators
Simulator Home Key Shift + CMD + H
Simulator screenshot CMD + S (saved to the desktop by default)
Copy Ctrl + CMD + C (saved on the clipboard) from the simulator screenshot)
Simulator to screen CMD + →/CMD + Simulator
Simulator size switch CMD + 1/2/3/4
Simulator screen lock CMD + L
The keyboard CMD + K is displayed in the text box.
Enter Shift + CMD + K on the keyboard in the text box
4. Xcode editing shortcut
Ctrl + P (previous)
Ctrl + N (next) Down)
Forward Ctrl + F (forward)
Ctrl + B (back)
Jump to the beginning of A row, Ctrl + A (ahead)
Jump to the end of a row, Ctrl + E (end)
Delete the subsequent characters Ctrl + D (delete)
Delete all text behind the current cursor row Ctrl + K
Delete all the text following the current cursor line CMD + Delete
Control + Y: paste the content deleted with Control + K or CMD + Delete to the position where the cursor is located.
Delete the word Ctrl + Delete before the current cursor
Change the characters on both sides of the current cursor Ctrl + T
Place the cursor insertion point in the center of the window Ctrl + L
Copy, cut, paste, and undo
5. Common Xcode shortcut keys (Direction arrow)
Press Ctrl + CMD + right arrow on the editing page
On the editing page, press Ctrl + CMD + left arrow.
Code block collapse CMD + Option + left arrow
Code block expand CMD + Option + right arrow
Show or collapse all code blocks Shift + CMD + Option + left and right arrows
Switch the. m and. h file CMD + Ctrl + up and down arrows
Jump to the beginning or end of the current editor CMD + up and down arrow
Jump to the beginning or end of a line, CMD + left and right arrows
Jump to the beginning or end of this section, Option + up and down arrow
Option + right arrow
Select Shift + up and down arrows in the forward or backward rows
Select Shift + Option + up/down arrow for the entire forward or backward segment
Select All Shift + CMD + up and down arrows
6. Common Xcode shortcut keys
Double-click the word where the cursor is located
Select the entire line of the cursor and triple-click it.
Focus jump to project navigator CMD + 1
Show/hide the navigator panel CMD + 0 (zero)
Show/hide Utility panel y cmd + Option + 0 (zero)
Display/hide print panel Shift + CMD + Y
Open dual view and open the file Option + left mouse click on the right of the dual View
Disable dual-view CMD + Enter
Open dual-view CMD + Option + Enter
Quickly switch to a file using the keyword CMD + Shift + O
Open API document Option + double-click
Quick open method or keyword help Option + Click
Expand all folders in the project. CMD + Shift + J
Move the selected code Option + CMD + parentheses forward or backward
7. Personal experience in using shortcuts
Do not remember it. When you think about code, you may need to check it and remember it slowly.