Commonly used Xcode shortcuts and xcode shortcuts
Xcode personal shortcut key navigation shortcut
command+1-8:
Open the Project/Symbol/Find/Issue/Test/Debug/Breakpoint/Log navigation bar
command+0:
Show/hide left-side tool panel
option+command+0:
Show/hide right tool panel
option+command+1:
Show the file inspector on the right
option+command+2:
Show quick help inspector on the right
shift+command+J:
In the Project navigation, locate the current file (Reveal in Project Navigator ).
command+J:
Move Focus allows you to quickly navigate to the editing page.
shift+command+Y:
Show/hide Console
Search shortcuts
Command+Shift+F
You can use project search to find the number of times a variable or method name is mentioned. It can be matched based on the instance and can ignore uppercase and lowercase letters. You can also replace the variable name.
Command + Shift + O
You can directly jump to a method definition or specified code file.
Control+6
(Enter the method/variable name + Enter)
Jump to the code line in the current Code file. If the file contains thousands of lines of code, you can use this shortcut to narrow the search scope and insert the code as needed to add new functions.
Control + Command + Up/Down Arrow
Fast switching between. h and. m Files
Control + 1
This shortcut key can open the 'show Related Items 'pop-up menu '. If you have already placed the cursor in any method and click 'ctrl + 1', you can easily access all callers and callers of the method through the pop-up view.
Run debugging shortcuts
Command + R
Run the application
Command + B
Build applications
Command + .:
Stop)
Command + \:
C. enable or disable the current breakpoint by clicking the blue breakpoint.
Command + Y:
Enable or disable all breakpoints globally. Enable the breakpoint to enter the debugging mode (in this case, the breakpoint is visible in blue ).
Command + Shift + K
Clean)
Edit shortcuts
command+[/]:
Forward/backward indent
command+/:
Comment out the selected code
option+command+←/→:
Collapse current code block
option+shift+command+←/→:
Collapse all code blocks in the file (methods/functions)
option+command+[/]:
Move Line Up/Down
Ctrl + F :
Forward cursor
Ctrl + B :
Move cursor behind
Ctrl + P :
Move the cursor to the previous line
Ctrl + N:
Move the cursor to the next row
Ctrl + A :
Move the cursor to the beginning of the line
Ctrl + E :
Move the cursor to the end of the row
Ctrl + T :
Exchange the characters on both sides of the cursor
Ctrl + D:
Delete characters on the right of the cursor
Ctrl + K :
Delete row
Ctrl + L :
Place the insertion point in the center of the window