[iOS] Xcode Common shortcut keys

Source: Internet
Author: User

Reference: http://www.linuxidc.com/Linux/2012-08/67905.htm

Xcode Common shortcut keys

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

Xcode Code formatting/auto-typesetting:

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 need to format code, Editor, Structure->re-indent or
Select the need to format code, right-click, and select Structure->re-indent

Automatic alignment:

Cut command+x +++++++++++ Paste Command+v

[iOS] Xcode Common shortcut keys

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.