Keyboard shortcuts for Apple and Xcode

Source: Internet
Author: User
Tags apple keyboard

Keyboard shortcuts for Apple and Xcode

Apple keyboard description:

Commands -- Command (commands)
Role -- Control
CATEGORY -- Option (alt)
Shift -- Shift
Unlock -- Caps Lock
Fn -- the function key is fn.
1. File
CMD + N: New File
CMD + SHIFT + N: new project
CMD + O: Open
CMD + S: Save
CMD + SHIFT + S: Save
CMD + W: Close the window
CMD + SHIFT + W: Close the file

2. Edit

CMD + [: Left indent
CMD +]: Right indent

CMD + CTRL + LEFT: Fold
CMD + CTRL + RIGHT: unhide
CMD + CTRL + TOP: collapse all functions
CMD + CTRL + BOTTOM: cancel all function folding
CTRL + U: cancel all collapse

CMD + D: Add bookmarks
CMD +/: comment or cancel the comment

CTRL +.: parameter prompt
ESC: Automatic prompt list

3. debugging

CMD + \: set or cancel a breakpoint
CMD + OPT + \: Allows or disables the current breakpoint
CMD + OPT + B: View All Breakpoints

CMD + RETURN: Compile and run (determine whether to enable breakpoint Based on settings)
CMD + R: Compile and run (do not trigger breakpoint)
CMD + Y: Compile and debug (trigger breakpoint)
CMD + SHIFT + RETURN: stops running or debugging

CMD + B: Compile
CMD + SHIFT + K: Clear

4. Form

CMD + SHIFT + B: compilation window
CMD + SHIFT + Y: debugging code window
CMD + SHIFT + R: Debugging Console
CMD + SHIFT + E: Adjust the main editing window

5. Help

CMD + OPT +? : Development Manual
CMD + CTRL +? : Quick help
Command + Shift + E: Extended Editor
Command + [: shift left code block
Command +]: Right Shift code block
Tab: receive code prompts
Esc: displays the code prompt menu
Ctrl +. (period): Circular browsing code prompt
Shift + Ctrl +. (period): returns the code prompt for reverse loop browsing.
Ctrl +/: Move to the next placeholder in the code prompt
Command + Ctrl + S: Create a snapshot
Ctrl + F: move the cursor forward
Ctrl + B: move the cursor behind
Ctrl + P: move the cursor to the top row
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 line -- Yang Guo Note: These two are very useful. XCode was just used, why can't the Home and End keys be directly located at the beginning and End of a row?
Ctrl + T: swap the characters on both sides of the cursor
Ctrl + D: Delete the character on the right of the cursor
Ctrl + K: delete this row
Ctrl + L: place the insert point in the center of the window
Command + Alt + D: show the open quickly window
Command + Alt + direction key: Open the supporting file
Command + D: Add bookmarks
Option + double-click: search in the document
Command + Y: run the program in debug mode
Command + Alt + P: Continue (in debugging)
Command + Alt + 0: Skip
Command + Alt + I: Jump
Command + Alt + T: Jump out
Go)
Control-F2
To menu
Control-F3
To Dock
Switch)
Command-Tab
Switch between programs
Command -'
Switch between windows in the program
Window)
Command-H
Hide
Command-M
Minimize
Command-N
New
Command-O
Open
Command-P
Print
Command-Q
Exit
Command-Q
Exit
Command-W
Close
F9
Display windows opened by all programs
F10
Display the current window
F11
Hide all windows and display desktops
File)
Command-S
Save
Command-Shift-S
Save
Command-Shift-N
Create folder
Command-I
Introduction
Command-Option-I
Show introduction to multiple projects

Screen sleep

Move)
Home
Move to the beginning of the file
End
Move to the end of the file
Command-submit
Move to the beginning of a row
Command-→
Move to end of line
Option-Encoding
Move a word to the left
Option-Encoding
Move a word to the right
Select)
Shift-Home
Start with file
Shift-End
Select end of File
Shift-Command-Detail
Select to the beginning of the line
Shift-Command-→
Select to end of line
Shift-Option-ignore
Select a word from the left
Shift-Option-ignore
Select a word to the right
Edit)
Fn-Backspace
Delete the character after the cursor
Finder
Space
Quick Look
Command-Delete
Delete
Command-Delete-Shift
Clear garbage bins
Command-Shift-
Go to the application directory
Command-Shift-C
Go to the COMPUTER directory
Command-Shift-H
Go to the HOME directory
Command-Shift-B
Transfer files via Bluetooth


Screen)
Control-Shift-EjectCommand-Shift-3
Capture the entire Screen
Command-Shift-4
Intercept a specified region
Command-Option --
Zoom out
Command-Option-=
Zoom in
Command-Option-Control-8
Switch the screen from white to white"
Command-Option-Ctrl->
Increase contrast
Command-Option-Ctrl-<
Contrast reduction

System)
Command-Option-Escape
Force exit Program
Command-Option-Eject
Sleep
Command-Control-Eject
Close all programs and restart
Command-Space
Switch Language
Command-esc
Front Row
Command -?
Get help
Command-F5
Open/close VoiceOver (read menu, button, etc)
Volume (Volume)
Shift-volume
Adjust the volume but do not make a prompt
Option-volume
Enable "sound" system preset"
Shift-Option-volume
Fine-tune the volume (the original 16 style sections are refined to 64 cells)

Others)
Command-Shift-Y
Generate a note with the selected text
Shortcut Keys used by Apple ~
1. The following shortcut keys are common shortcut keys at the system level:
Command + A: select all
Command + C: Copy
Command + V: Paste
Command + X: Cut
Command + Z: undo
Shift + Command + Z: undo the previous "undo" Action 2
2. In the text input area, move the cursor:
Up/Down/Left/Right: move the cursor to (top/bottom/Left/Right) (one character/line)
Option + Left/Right: move the cursor to a word (before/after) (the word cannot be recognized when processing Chinese characters, no difference from Left/Right)
Commandmand + Left/Right: move the cursor to the beginning/end of the line
Option + Up/Down: move the cursor to the beginning/end of this segment
Command + Up/Down: move the cursor to the beginning/end of the document
3. How to Select text:
Click at the beginning, and then press Shift to click at the end;
Click twice at the beginning, drag the pointer to the end, and click;
Press the Shift key and press the up or down key (you can also use it with Option or Command)
Double Click: Double-Click to select the word where the cursor is located;
Triple Click: double-Click the section where the cursor is located (this is important)
4. Excluding text:
Delete: A character before the cursor is exceeded.
Fn + Delete: Delete a character after the cursor
Option + Delete: Delete a word before the cursor
Fn + Option + Delete: Delete a word after the cursor
The following three shortcut keys are very useful:
Command + Delete: Delete the content from the cursor to the beginning of the line
Control + K: Delete the content from the cursor to the end of this section
Control + Y: paste the content deleted with Control + K or Command + Delete to the position where the cursor is located.
There is also an interesting and useful shortcut key, Control + T: swap the two subtitles before and after the cursor. However, the FIT Chinese Input Method sets this key to "simple and Traditional Chinese Input Switch". Therefore, this shortcut key cannot be used when the Chinese input is activated.
5. Spelling tools
Shift + Command +; call up the spelling check dialog box. F5 to complete the current word. In the TextEdit program, you can also use ESC to view spelling suggestions. (The cursor should be placed after an English letter)
6. Rich text editing
Plain text files (txt) are not formatted, but rich texts (such as rtf) are in various formats, and the shortcut keys for setting the format are basically common:
Command + B: Increase
Command + I: skew
Command + U: underline Command ++: Increase the font size
Command +-: Zoom out font size Command + {: left
Command +}: Right
Command + |: Center Control + Command + U: converts selected text to Upper case)
Control + Command + L: converts selected text to Lower case (Lower case)
Control + Command + C: Convert the first letter of the selected text to capital (Capitalize) Command + K: insert the hyperlink Shift + Option + Command + V: paste it in the format of the cursor
7. Search in the document
Command + F: Search
Command + G: Search next location
Shift + Command + G: Search for the previous position
8. Enter special characters
The Option and Shift + Option function keys can be combined with other single keys. You can enter a variety of special characters 3:
Key table after Option is pressed
Key table after pressing Shift + Option
9. FIT Chinese Input Method
Shift: switch between Chinese and English
Command + Space: Switch Input Method
Shift + Space: Full-angle character Switching
Control +.: switch between Chinese and English Punctuation
Control + T: simple and Traditional Chinese Input Switch
Although the FIT input method has stopped development and is maintained independently by tianyu263, it is still a "enough" input method. Like all modern input methods, it has the ability to "automatically learn" based on user input (that is, to automatically remember users' choices ). For example, if you select a "Custom Vocabulary" and enter the same pinyin, the "Custom Vocabulary" will be ranked first. However, sometimes you may accidentally enter an error. For example, if you want to enter a "Custom word", you can enter a "Custom word". Then, once you enter this pinyin, the "custom meeting" will be ranked first. In this case, you can press Option + 1 instead of space or press enter after entering the Pinyin of "Custom Vocabulary" to delete this "wrong memory ", then select the correct one.

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.