For developers accustomed to Windows operations, you will feel uncomfortable with Xcode for the first time, one of the important reasons is that the MAC has two more physical keys than the Windows X86 computer: Fn and Command. In particular, the command key, on the Mac on the road, really can be a mighty. If you want to provide high development efficiency, especially in front of the presentation, it seems to be familiar with a few strokes of shortcut keys, this combination of boxing.
In fact, the shortcut keys in the Xcode toolbar are labeled, but some of the symbols and the symbols on your keyboard do not match up. The shortcut keys in the following toolbar summarize the usage of common shortcut keys.
First, about compiling, running
1, run, stop, all in the product of the toolbar.
Command + B: Compile (b is the first letter of build)
Command + R Run (R is the first letter of Run)
The above two shortcut keys, in iOS programming, the frequency is high. Such as:
The shortcut key for the navigation bar. As follows:
Read here, perhaps you are already very clear. As with other software, the combination of shortcut keys is shown in the toolbar. All you have to do is navigate the toolbar.
In fact, what you are puzzled about is that these dazzling shortcut keys are in line with the dazzling. Because the instructions are explicitly given under the Windows system. For example: Shift key, Ctrl key. And under the MAC, it's just a naked symbol.
Now, let's read these weird symbols:
This is the option, Control, and SHIFT keys we use. Also guilty of common bow Command keys.
For ease of memory, it is understood that:
1. The crooked symbol represents Option. (Optign is the meaning of choice, "choice" is always wavering);
2. The commanding arrow, which represents Control. (Control is the means of controlling.) The controller is always condescending);
3. The up arrow, which represents Shift. (Shift is moving, so-called people go High).
Here are a few more common shortcut keys:
1, switch the head file and M. file, very practical
Command + control+ up and DOWN ARROW keys
2, go back, fallback. This is a big use, just go back to the last page you opened.
Control+command+ LEFT Arrow
Go forward back to the page you opened earlier
Control+command+ RIGHT Arrow
Third, file
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
Iv. Editing Code1, Code indentation
Left indent command+[
Right indent command+]
2. Code Editor 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 Next Place
Shift + Command + G: Search PreviousSummary: Although these shortcuts can be found from the toolbar, you can also use the mouse to work in the toolbar, but if you want to improve efficiency, especially in front of others to demonstrate the program, want to show off a few, remember a few shortcut keys is still necessary.
IOS: Schematic shortcuts used by Xcode