A summary of COMMON commands:
Hide Xcode command+h
Exit Xcode Command+q
Close Window Command+w
Close all Windows Command+option+w
Close the current project Command+control+w
Close the current file command+shift+w
Save File Command+s
Save All Files Command+option+s
Revert to save State command+u
Find Command+shift+f in Projects
Find the next Command+g
Find Previous Command+shift+g
Browse Source Files Command+double Click
Open the header file Command+shift+d
Toggle Header/Source file command+option+ up arrow
Revoke Command+z
Repeat Command+shift+z
Shear Command+x
Copy Command+c
Paste Command+v
Paste and Match format command+option+shift+v
Select All Command+a
Comment command+/
File first line command+ up arrow
End of file command+ down arrow
Command+ left arrow at beginning of line
End of line command+ right arrow
Previous word option+ left arrow
Next word option+ right arrow
Previous split word control+ left arrow
Next split word control+ right arrow
Tab: Accept Code hints
ESC: Show Code hints menu
Next build warning or error command+=
Previous build warning or error command+shift+=
Run the program in debug mode command+y
Continue (in debugging) command+option+p
Compile Run Command+r
Second, the code to write a mess, how to automatically typesetting? Code formatting "Android in Alt+shift+f"
Xcode version: Versions prior to 4.2 and 4.2
Select the format->re-indent you want formatting code, Edit-
Xcode version: Version after 4.2
Select the format code you want, menu:-> Editor, Structure->re-indent
Or Select the format code you want, right-click, and select Structure->re-indent
Note: There is currently no combo key to find this command, only right-click to select Command "
Third, the navigation shortcut keys:
Explain the buttons that the symbols represent:
We use the option, control, and Shift keys, respectively.
1, switch the head file and M. file, very practical
Command + control+ up and DOWN ARROW keys
2, go back, fallback, is to return to the last page you opened.
Control+command+ LEFT Arrow
Go forward back to the page you opened earlier
Control+command+ RIGHT Arrow
Iv. file operation
New Project Command+shift+n
New File Command+n
New Empty file Command+control+n
Open Command+o
Close Window Command+w
Save All Files Command+option+s
Revert to save State command+u
Five, edit the code
1, Code indentation
Left indent command+[
Right indent command+]
2. Code editing
Control-f: One character to the right (forward)
Control-b: One character to the left (backward)
Control-p: Previous line (previous)
Control-n: Back row (next)
Control-a: Go to the beginning
CONTROL-E: To Line end (end)
CONTROL-T: Swap characters on both sides of the cursor (transpose)
control-d: Delete the right character of the cursor (delete)
Control-k: Delete the remaining characters of the Bank (kill)
3. In-Document search
Command + F: Search
Command + G: Search the next place
Shift + Command + G: Search Previous
Xcode common shortcut keys and code format brush (Indentation) method