Overview of iOS development shortcuts!

Overview of iOS development shortcuts!

1. Apple shortcut icon

6b768663371baca2fb01eb8abb553492.jpg

2. Xcode basic shortcuts

New project Shift + CMD + N
New file in the project CMD + N
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
Comment or uncomment CMD + /
Auto prompt list ESC

Three. Simulator commonly used shortcut keys

Simulator Home button Shift + CMD + H
Simulator screenshot CMD + S (save to the desktop by default)
Simulator screenshot copy Ctrl + CMD + C (save in clipboard)
Simulator to screen CMD + → / CMD + ←
Simulator size switch CMD + 1/2/3/4
Simulator lock screen CMD + L
The text box pops up the keyboard CMD + K
The text box allows keyboard input Shift + CMD + K

Four. Xcode editing shortcuts

Up Ctrl + P (previous)
Down Ctrl + N (next)
Forward Ctrl + F (forward)
Ctrl + B (back)
Jump to the front of a line Ctrl + A (ahead)
Jump to the end of a line Ctrl + E (end)
Delete the following character Ctrl + D (delete)
Delete all the following text in the current cursor line Ctrl + K
Delete all the following text in the current cursor line CMD + Delete
Control + Y: Paste the content just deleted with Control + K or CMD + Delete to the cursor
Delete a word in front of the current cursor Ctrl + Delete
Swap the characters on both sides of the current cursor Ctrl + T
Place the cursor insertion point in the middle of the window Ctrl + L
Copy, cut, paste, undo slightly

Five. Xcode commonly used shortcut keys (direction arrows)

Edit interface forward Ctrl + CMD + right arrow
Edit interface backward Ctrl + CMD + left arrow
Code block folding CMD + Option + Left arrow
Code block expansion CMD + Option + right arrow
Expand or collapse all code blocks Shift + CMD + Option + left and right arrows
Switch between .m and .h files CMD + Ctrl + up and down arrows
Jump to the top or bottom of the current editor CMD + up and down arrows
Jump to the beginning or end of the line CMD + left and right arrows
Jump to the beginning or end of this paragraph Option + Up and down arrows
Jump a word left and right Option + left and right arrows
Select the entire line forward or backward Shift + up and down arrows
Select the entire paragraph forward or backward Shift + Option + up and down arrows
Select all forwards and select all successively Shift + CMD + up and down arrows

6. Xcode commonly used shortcut keys

Select the word under the cursor and double-click
Select the entire line where the cursor is located
The focus jumps to the project navigator CMD + 1
Show/hide the navigator panel CMD + 0 (zero)
Show/hide the utility panel Y CMD + Option + 0 (zero)
Show/hide the print panel Shift + CMD + Y
Open the dual view and open the file on the right side of the dual view Option+click with the left mouse button
Close dual view CMD + Enter
Open dual view CMD+ Option + Enter
Quickly switch to a file based on keywords CMD +Shift + O
Open API document Option+ double click
Quickly open method or keyword help Option + click
Expand all folders in the project CMD +Shift + J
Move the selected code forward or backward Option +CMD +left and right brackets

7. Personal experience of using shortcut keys

Don't memorize it deliberately. When typing the code, you feel that you need to use a certain place. Check it out and remember it slowly.

Recommended essays


Guess you like

Origin blog.51cto.com/15010671/2665520