Xcode personal frequently used shortcut keys

Source: Internet
Author: User

Xcode shortcut keys for personal use

command+1-8:

Open the Project/symbol/find/issue/test/debug/breakpoint/log navigation bar

command+0:

Show/Hide left tool panel

option+command+0:

Show/Hide Right tool panel

option+command+1:

Show right The file inspector

option+command+2:

Show right Quick help inspector

shift+command+J:

Locates the current file in Project navigation (Reveal in Project Navigator).

command+J:

Focus Toggle (Move focus) to quickly navigate to the editing interface

shift+command+Y:

Show/Hide the console

Search shortcut keys

Command+Shift+F

Use the project search to find the number of times a variable or method name has been mentioned. Can be matched against an instance, and the uppercase and lowercase letters can be ignored. You can also replace the name of the variable you are looking for.

Command + Shift + O

You can jump directly to a method definition or to a specified code file.

Control+6

(Type method/variable name +enter jump)

Jumps to the line of code in the current code file. If you have thousands of lines of code in your file, you can use this shortcut to narrow your search to insert code where needed to add new functionality.

Control + Command + Up/Down Arrow

Fast switching between. h and. m files

Control + 1

This shortcut will open the ' Show related Items ' pop-up menu. If you have placed your cursor in any method and clicked ' CTRL + 1 ', you can easily access all callers and callers of the method through the popup view.

Run Debug shortcut keys

Command + R

Running the application

Command + B

Building the Application

Command + .:

Stop running (stop)

Command + \:

C Set/Cancel breakpoint, and enable/disable the current line breakpoint by clicking the Blue breakpoint on the mouse.

Command + Y:

Globally activates or disables all breakpoints, activating into debug mode (at which point the breakpoint is blue visible).

Command + Shift + K

Cleanup Works (Clean)

Edit shortcut Keys

command+[/]:

Forward/Backward Indent

command+/:

Comment on the selected code

option+command+←/→:

Collapse the current code block

option+shift+command+←/→:

Collapses all code blocks within the file (methods/functions)

option+command+[/]:

Move Line Up/down

Ctrl + F :

Move Cursor Forward

Ctrl + B :

Move cursor Back

Ctrl + P :

Move cursor to previous line

Ctrl + N:

Move the cursor to the next line

Ctrl + A :

Move the cursor to the beginning of our line

Ctrl + E :

Move the cursor to the end of our line

Ctrl + T :

Swap the characters on the left and right sides of the cursor

Ctrl + D:

Delete the character to the right of the cursor

Ctrl + K :

Delete Bank

Ctrl + L :

Place the insertion point in the center of the window

Xcode personal frequently used 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.