Original: http://blog.sina.com.cn/s/blog_c70304d60102x93c.html

Because ios10 was just released, new emulators and adaptations needed to be added in the project, so xcode8 was upgraded on September 20th. However, after the upgrade, it was found that the shortcut key commed+/ was invalid, and it still failed after repeated restarts for N times. Later, it was found that Xcode8 blocked the use of plug-ins. In terminal input sudo/usr/libexec/xpccachectl can, introduce some commonly used xcode shortcuts below (from http://www.cnblogs.com/langtianya/p/3888157.html)

1. Switch header files and m. files

Command + Control + up and down arrow keys

Go back to the page you opened last time.

Control + command + left arrow

Go forward to the page you opened earlier

Control + command + right arrow

3

New project Command + Shift +n

Create a new file command+n

Create an empty file command+ Control +n

Open the command + o

Close the window command+w

Save all files command+option+s

Restore to the saved state Command +u

Edit the code

1. Indent code

The indentation left command + [

Right indent command +]

2. Code editing

Control-f: One character to the right

(forward) Control-b: one character left

(Backward) Control-p: The previous row

(Previous) Control-n: Previous line

(Next) Control-a: Go to the front of the line

Control – E: to the end of each line

(end) Control-t: reverses the characters around the cursor

(Transpose) Control-d: Delete the character right of the cursor

(delete) Control-k: Delete the remaining characters on the line (kill)

3. Search within documents

Command + F: search

Command + G: Searches for the next location

Shift + Command + G: Search for the previous location

  1. file

CMD + N: new file

CMD + SHIFT + N: New project

CMD + O: Open CMD + S: Save

CMD + SHIFT + S: Save as

CMD + W: Close the window

CMD + SHIFT + W: Close the file

  1. The editor

CMD + [: left-indent

CMD +]: indent right

CMD + CTRL + LEFT: Fold

CMD + CTRL + RIGHT: Cancel the fold

CMD + CTRL + TOP: Collapse all functions

CMD + CTRL + BOTTOM: Unfold all functions

CTRL + U: Cancel all folding

CMD + D: Add bookmarks

CMD + /: Comment or uncomment

CTRL +.: Parameter prompt

ESC: Automatic prompt list

  1. debugging

CMD + : Sets or cancels breakpoints

CMD + OPT + : allows or disables the breakpoint

CMD + OPT + B: View all breakpoints

CMD + RETURN: Compile and run (breakpoint enabled depending on Settings)

CMD + R: Compile and run (without triggering breakpoints)

CMD + Y: Compile and debug (trigger breakpoints)

CMD + SHIFT + RETURN: Stop running or debugging

CMD + B: compile

CMD + SHIFT + K: clear

  1. The form

CMD + SHIFT + B: Compile window

CMD + SHIFT + Y: Debug code window

CMD + SHIFT + R: Debug console

CMD + SHIFT + E: Adjust the main edit window

  1. help

CMD + OPT + ? : Development Manual

CMD + CTRL + ? : Quick help

Here are some useful shortcuts (from http://www.cppblog.com/brucejini/archive/2010/12/24/137367.html

)

Command + Shift + E: Extends the editor

Command + [: moves the code block left

Command +] : Moves the code block right

Tab: accepts code prompts

Esc: Displays the code prompt menu

Ctrl +. (period) : Loop through code prompts

Shift + Ctrl +. (period) : Iterate through code hints in reverse

Ctrl + / : Moves to the next placeholder in the code prompt

Command + Ctrl + S: Creates a snapshot

Ctrl + F: Move the cursor forward

Ctrl + B: Move the cursor back

Ctrl + P: Move the cursor to the previous line

Ctrl + N: Move the cursor to the next line

Ctrl + A: Move the cursor to the beginning of the line

Ctrl + E: Move the cursor to the end of the line

When I first started using XCode, I wondered why the Home and End keys could not be located directly at the beginning and End of the line.

Ctrl + T: Swaps characters to the left and right of the cursor

Ctrl + D: Delete the character right of the cursor

Ctrl + K: Delete this line

Ctrl + L: Place the insertion point in the middle of the window

Command + Alt + D: display

The open window quickly

Command + Alt + Arrow key up: Open the matching file

Command + D: Add bookmarks

Option + Double click: Searches the document

Command + Y: Runs the program in debug mode

Command + Alt + P: Continue (debugging)

Command + Alt + 0: Skip

Command + Alt + I: Jump in

Command + Alt + T: Jump out

Here are some other shortcuts on MAC (from http://www.chinamac.com/2009/0621/46775.html)

Go To

Control-F2

To the menu

Control-F3

To the Dock

Switch (Switch)

Command-Tab

Switch between programs

Command-`

Switch between Windows in the program

Windows

Command-H

hidden

Command-M

To minimize the

Command-N

new

Command-O

Open the

Command-P

print

Command-Q

exit

Command-Q

exit

Command-W

Shut down

F9

Displays open Windows for all programs

F10

Displays the currently open window

F11

Hide all Windows and display the desktop

File

Command-S

save

Command-Shift-S

Save as

Command-Shift-N

New Folder

Command-I

Introduction to the

Command-Option-I

Displays profiles for multiple projects

Move

Home

Move to the beginning of the file

End

Move to the end of the file

The Command – please

Move to the top of the line

The Command – –

Move to the end of the line

Option – please

Move a word to the left

Option – please

Move a word to the right

Select

Shift-Home

Go to the beginning of the file

Shift-End

Select to end of file

Shift – Command – please

Select to the beginning of the line

Shift – Command – –

Select to the end of the line

Shift – Option – please

Choose a word to the left

Shift – Option – please

Choose a word to the right

Edit

Fn-Backspace

Deletes the character after the cursor

Finder

Space

Quick Look

Command-Delete

delete

Command-Delete-Shift

Empty the trash

Command-Shift-A

Go to the application directory

Command-Shift-C

Go to the COMPUTER directory

Command-Shift-H

Go to the HOME directory

Command-Shift-B

Send files over Bluetooth

Screen

Control-Shift-Eject

Screen dormancy

Command-Shift-3

Capture the entire screen

Command-Shift-4

Intercepts the specified area

Command-Option–

narrow

Command-Option-=

amplification

Command-Option-Control-8

Switch screen from “black on white” to “White on black”

Command-Option-Ctrl->

Improve contrast

Command-Option-Ctrl-<

Contrast reduction

System

Command-Option-Escape

Forced exit routine

Command-Option-Eject

sleep

Command-Control-Eject

Close all programs and restart

Command-Space

To switch between languages

Command-esc

Front Row

Command-?

To get help

Command-F5

Turn on/off VoiceOver (read menus, buttons, etc.)

Volume

Shift-volume

Adjust the volume without beeping

Option-volume

Open System Preferences for Sounds

Shift-Option-volume

Fine tuning volume (original 16 to 64)

Others

Command-Shift-Y

Generates a sticky note with the currently selected text

OS X’s text editors rarely use shortcuts (from http://www.ib66.net.cn/bbs/view/id-39)

Word processing is the most common task on a computer. In the process of word processing, skilled use of a variety of shortcut keys to improve work efficiency has a decisive significance. Taking any piece of software — even an operating system — and studying its shortcut keys is a good habit for working with a computer

).

The following focuses on MB/MBP/MB Air notebook keyboard (no F13~F15, no small number keyboard).

  1. The following shortcuts are common system level shortcuts:

Command + A: Select all Command + C: copy Command + V: paste Command + X: cut Command + Z: undo Shift + Command + Z: Undo

  1. In the text input area, move the cursor:

Up/Down/Left/Right: Moves the cursor (one character/line) to (Up/Down/Left/Right) Option + Left/Right: Commandmand + Left/Right: Move the cursor to the beginning/end of a line Option + Up/Down: Command + Up/Down: Moves the cursor to the beginning/end of a document

  1. Method of selecting text

:

Click at the beginning and hold Shift

The key clicks at the end; Click twice at the beginning, then drag the pointer to the end and click once;

Shift followed by up, down, left, and right (can also be used with Option or Command)

Double Click: select the word where the cursor is;

Select the paragraph where the cursor is (this is important).

  1. Delete the word

:

Delete

: Deletes a character before the cursor

Fn + Delete: deletes a character after the cursor

Option + Delete: Deletes a word before the cursor

Fn + Option + Delete: Deletes a word after the cursor

The following three shortcuts are very useful:

Command + Delete

: Deletes the content that moves the cursor to the beginning of the line

Control + K: Delete the cursor to the end of the paragraph

Control + Y: Paste the content you just deleted with Control + K or Command + Delete to the point where the cursor is

There’s also an interesting and useful shortcut, Control + T

: Switch the position of the two subtitles before and after the cursor. However, the FIT Chinese input method sets this key to “switching between Traditional and simplified Chinese input”, so this shortcut cannot be used when Chinese input is active.

  1. English spelling tool

Shift + Command + ;

Bring up the spell check dialog box.

F5

Complete the current word. In the TextEdit program, you can also use ESC to view spelling suggestions. (The cursor position should be after the English letter)

  1. Rich text editor

Plain text files (TXT) have no format, but rich text (RTF, etc.) comes in a variety of formats, and the formatting shortcuts are almost universal:

Command + B

: add

Command + I: tilt

Command + U: underscore

Command + +

: Increases the font size

Command + – : reduces the font size

Command + {

: on the left

Command +} : Lean to the right

The Command + | : center

Control + Command + U

: Converts selected text to uppercase format (Upper case)

Control + Command + L: Convert selected text to Lower case

Control + Command + C: Capitalize the first letter of the selected text

Command + K

: Insert hyperlinks

Shift + Option + Command + V

: Paste in the format of the cursor

  1. In-document search

Command + F

Search:

Command + G: Searches for the next location

Shift + Command + G: Search for the previous location

  1. Enter special characters

Option

The Shift + Option function key can be combined with other single keys to enter various special characters 3:

Press the key table after Option

Press the key table after Shift + Option

  1. FIT Chinese input method

Shift

: Switching between English and Chinese

Command + Space: Changes the input method

Shift + Space: Full character switch

Control +. : Chinese and English punctuation switch

Control + T: Switching between traditional and simple input

The FIT input method although currently discontinued continues to be developed by Tianyu263

Self-maintenance, but it’s still a “good enough” input method. Like all modern input methods, it has the ability to continuously “auto-learn” (that is, automatically remember the user’s choices) based on the user’s input. For example, if you select the “custom word” once and type the same pinyin in the future, the “custom word” will be ranked first. However, sometimes careless input errors, for example, clearly want to enter “custom words”, but entered into “custom words”; So once you enter this pinyin in the future, “custom will” will be ranked first. In this case, instead of pressing “space” or “enter” after entering the pinyin of “custom vocabulary”, press Option + 1 to delete the “wrong memory” and then select the correct one again: