The finger jumps fast on the keyboard, and the code on the terminal flies, yes, it's really cool. Good programmers are always such a group of people, they are not in the status quo, not stand still, they like the novelty of things, they put themselves to the fullest.
Fingering Raiders
Put down your favorite mouse, in the forward it will become your burden!
Précis-writers
command to navigate, control the navigation area
ALT controls something on the right, like assistant editor,utility Editor
Some interactions of the jump bar on the Control edit area
Command 1~ 8: Jump to different locations in the navigation area
Command 0: Show/Hide Navigation area
Command Alt 1~ 6: Jump between different detectors
Control Command Alt 1~4: Jump between different libraries
Control 1~ 6: Jumps on different tabs of the jump bar.
Command Alt 0: Show/close Tool area
Command + Enter: Display standard Single Window editor
Command Alt Enter: Open Assistant Editor
Command Alt Shift Enter: Open version Control editor
Command + Shift + Y: Show/Hide Debug area
Command + Shift + J to show the files you currently open in the Project Navigator
CMD +. Conveniently pauses the iOS emulator
Find
Use COMMAND + SHIFT + Option + F to open the Replace mode of Find Navigator, if you have trouble, you can also use COMMAND + SHIFT + F to open Find Navigator's lookup mode, if you're still in trouble , open Find Navigator with Command +, then turn on Find or replace mode and choose the one that suits you best.
Quick Open
Command + Shift + O can jump directly to a method definition or to a specified code file. People who like to use the keyboard but don't like to use the mouse will love this shortcut. You can quickly switch to a file or find a specific line of code by typing the first letter. For example, typing VDL, the first display of the result is a function with the Viewdidload () name.
Help
Command + Shift + 0 (Zero) Open the document and reference, type a keyword in the code, and the document provides some additional resources and sample engineering. Of course, you can also perform a option+ double-click name operation on a variable, class, or method name to make it easier to jump to the document.
Performing an option + left click on a class or method name uses inline help to help developers quickly learn about the use of classes or code snippets. If you click the reference link at the bottom of the pop-up view, you can easily jump to the documentation provided by Xcode.
Personal comparison favorite option+ double-click the name operation, after all come directly.
Code Snippets
The code snippet for Xcode creates a custom code snippet that can be very handy when you re-Snippets the code snippets.
Common code blocks
1.copy:
1 |
@property (nonatomic,copy) NSString *< #string#>; |
2.strong:
1 |
@property (nonatomic,strong) < #Class#> *<#object#>; |
3.weak:
1 |
@property (nonatomic,weak) < #Class#> *<#object#>; |
4.assign:
1 |
@property (nonatomic,assign) < #Class#> <#property#>; |
5.delegate:
1 |
@property (nonatomic,weak) id<< #protocol#>> <#delegate#>; |
6.block:
1 |
@property (nonatomic,copy) < #Block#> <#block#>; |
7.mark:
8.gmark:
1 |
#pragma mark - <#gmark#> |
9.warning:
10.ReUseCell:
123456 |
static NSString *rid=< #rid#>; < #Class#> *cell=[tableView dequeueReusableCellWithIdentifier:rid]; if (cell==nil){ cell=[[< #Class#> alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:rid]; } return cell; |
11.INITOBJ:
1234 |
if (self=[ super init]){ < #init#> } return self; |
12.dataFill:
123 |
-(void)dataFill:(< #ModelClass#> *)<#model#>{ < #code#> } |
13.MainGCD:
123 |
dispatch_async(dispatch_get_main_queue(), ^{ < #code#> }); |
14.GlobalGCD:
123 |
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ < #code#> }); |
15.AfterGCD:
123 |
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(< #delayInSeconds#> * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ < #code to be executed after a specified delay#> }); |
16.OnceGCD:
1234 |
static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ < #code to be executed once#> }); |
Black Skill (sort code)
Use Spotlight to search for Automator and open it, then click on File->new and select a service item, in the Actions filter bar, enter the shell, and double-click Run Shell script, and on the menu bar of the newly added service, Check output replaces selected text; switch script content to sort | Uniq at the same time, press COMMAND + S to save the service as Sort & Uniq.
For more information, refer to the previous document: "Custom script commands on Mac"
Let your Xcode key word fly