Xcode shortcut key-Gray often practical shortcut keys, later programming more quickly

Source: Internet
Author: User

From the rain Mark boss's blog to transfer the http://www.rainsts.net/article.asp?id=1066 scholar steal book is not counted stolen:)

1. File

cmd + N: New file
cmd + SHIFT + N: New Item
CMD + O: Open
cmd + S: Save
CMD + SHIFT + S: Saved
cmd + W: Close window
CMD + SHIFT + W: Close file

2. Edit

cmd + [: Left indent
cmd +]: Right indent

cmd + CTRL + Left: Collapse
cmd + ctrl + Right: Collapse
cmd + ctrl + TOP: Collapse All functions
CMD + CTRL + BOTTOM: Cancel all functions collapsed
CTRL + U: Cancel All Section collapse

cmd + D: Add bookmark
cmd +/: Comment or uncomment

CTRL +.: Parameter hint
ESC: auto Prompt list

3. Debug

CM D + \: Set or Cancel breakpoint
cmd + opt + \: Allow or disable current breakpoint
cmd + opt + B: View all Breakpoints

cmd + RETURN: Compile and run (depending on settings to enable breakpoints)
CMD + R: Translate and run (do not trigger breakpoints)
Cmd + Y: Compile and debug (trigger breakpoint)
CMD + SHIFT + RETURN: Terminate run or debug

cmd + B: Compile
cmd + SHIFT + K: Cleanup

4. Form

cmd + SHIFT + B: Compile window
CMD + SHIFT + Y: Debug code window
CMD + SHIFT + R: Debug console
cmd + SHIFT + E: main edit window Adjustment br>
5. Help

cmd + OPT +?: Development manual
cmd + CTRL +?: Quick help  

Here are some useful shortcut keys (Transferred from Http://www.cppblog.com/brucejini/archive/2010/12/24/137367.html)


Command + Shift + E: Extended Editor
Command + [: Move code block left
Command +]: Move code block right
Tab: Accept Code hints
ESC: Show Code hints menu
Ctrl +. (period): Loop through code hints
Shift + Ctrl +. (period): Reverse looping through code hints
Ctrl +/: Move to the next placeholder in the code hint
Command + Ctrl + S: Create snapshot
Ctrl + F: Move forward cursor
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 bank
Ctrl + E: Move the cursor to the end of our line--Yang over note: These two are too useful, just started with Xcode, has been strange why home and end keys can not directly locate the beginning, line end?
Ctrl + T: Swap the characters on the left and right side of the cursor
Ctrl + D: Remove the character to the right of the cursor
Ctrl + K: Delete Bank
Ctrl + L: Places the insertion point in the middle of the window
Command + Alt + D: Show open quickly window
Command + ALT + UP ARROW key: Open the companion file
Command + D: Add Bookmark
Option + Double-click: Search in document
Command + Y: Run the program in debug mode
Command + Alt + P: Continue (in debugging)
Command + Alt + 0: Skip
Command + Alt + I: Jump in
Command + Alt + T: Jump out


Here are some other shortcuts for Mac
(go from http://www.chinamac.com/2009/0621/46775.html)

Go (go to)
Control-f2 to the menu
Control-f3 to the dock
Toggle (Switch)
Command-tab Switching between programs
Command-' Switch between windows in a program
Window (Windows)
Command-h Hide
Command-m Minimization of
Command-n New
Command-o Open it
Command-p Print
Command-q Exit
Command-q Exit
Command-w Shut down
F9 Show All Programs open windows
F10 Displays the currently open window
F11 Hide all windows and display the desktop
Document (file)
Command-s Save
Command-shift-s Save As
Command-shift-n New Folder
Command-i Brief introduction
Command-option-i Show an introduction to multiple projects
Mobile (move)
Home Move to the beginning of a file
End Move to end of file
command-← Move to the beginning of the line
command-→ Move to end of line
option-← Move one word to the left
option-← Move one word to the right
Select (select)
Shift-home Select to the beginning of the file
Shift-end Select to end of file
shift-command-← Select to the beginning of the line
shift-command-→ Select to end of line
shift-option-← Select a word to the left
shift-option-← Select a word to the right
Editing (Edit)
Fn-backspace Delete the character after the cursor
Finder
Space Quick look
Command-delete Delete
Command-delete-shift Emptying the trash cans
Command-shift-a Go to the application directory
Command-shift-c Go to Computer directory
Command-shift-h Go to home directory
Command-shift-b Transferring files via Bluetooth
Screens (screen)
Control-shift-eject Screen hibernation
Command-shift-3 Capture the entire screen
Command-shift-4 Intercept a specified area
command-option-- Narrow
command-option-= Amplification
Command-option-control-8 Switch the screen from black to white on the black background
Command-option-ctrl-> Improved contrast ratio
command-option-ctrl-< Lower contrast Ratio
Systems (System)
Command-option-escape Force Exit Program
Command-option-eject Sleep
Command-control-eject Close all Programs and restart
Command-space Toggle Language
Command-esc Front Row
Command-? Get help
Command-f5 Turn voiceover on/off (Read menu, button, etc.)
Volume (Volume)
Shift-volume Adjust the volume without beeping
Option-volume Turn on system presets for sound
Shift-option-volume Fine-Tune the volume (the original 16-lattice adjustment is 64-cell)
Others (Others)
Command-shift-y Generate a note with the currently selected text


OS x text Editing rarely used shortcut keys
(go from http://www.ib66.net.cn/bbs/view/id-39)


With computers, word processing is the most common task. In the process of word processing, skilled use of a variety of shortcut keys to improve the efficiency of the decisive significance. (Getting any software-even the operating system-to study its shortcuts is the best habit of working with computers, 1.) )

The following is an emphasis on MB/MBP/MB Air's notebook keyboard (no f13~f15, no small numeric keypad).

1. The following shortcuts 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 "undo" action you just made 2

2. In the text input area, move the cursor method :

up/down/left/right: Move cursor (one character/line) to (up/down/left/right)
Option + left/right: Moves the cursor to a word (before/after) (does not recognize "word" when processing Chinese, no difference from left/right)
Commandmand + left/right: Moves the cursor to the beginning/end of the line
Option + up/down: Moves the cursor to the beginning/end of this paragraph
Command + up/down: Moves the cursor to the beginning/end of the document

3. How to select text :

Click at the beginning and then press Shift key to click at the end;
Click twice at the beginning, then drag the pointer to the end, and click;
Press the Shift key and press the UP or down key (you can also use Option or Command )
Double clickto select the word where the cursor is located;
Triple Click: Combo Three, check the paragraph where the cursor is located (this is important)

4. Delete text :

Delete: Remove a character before the cursor
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 useful:

Command + Delete: Delete the cursor to the beginning of the line
Control + K: Delete cursor to the end of this paragraph
control + Y: Paste the content you just deleted with control + K or Command + Delete to where the cursor is located

There is also a very interesting and useful shortcut key,Control + T: The position of the two subtitles before and after the cursor is swapped. However, the fit Chinese input method sets this key to "simplified traditional input switching", so the shortcut cannot be used when the Chinese input is active.

5. English spelling Tools

Shift + Command +; Bring up the spelling checker dialog box.

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

6. Rich Text Editing

Plain text files (TXT) are not formatted, but Rich Text (RTF, and so on) is available in a variety of formats, and the shortcut keys for formatting are basically generic:

Command + B: Aggravating
Command + I: Tilt
Command + U: Underline

Command + +: Increase Font size
Command +-: Reduce font size

Command + {: on the Left
Command +}: on the right
Command + |: Center

Control + Command + U: Convert selected text to uppercase format (Upper case)
Control + Command + L: Convert selected text to lowercase format (Lower case)
Control + Command + C: Converts the first letter of the selected text to uppercase format (capitalize)

Command + K: Insert Hyperlink

Shift + Option + Command + V: Paste in the same format as the cursor

7. In-Document search

Command + F: Search
Command + G: Search the next place
Shift + Command + G: Search Previous

8. Enter special characters

option and Shift + option This function key with other single key combinations, you can enter a variety of special characters 3:

Key table after option is pressed

Press SHIFT + OPTION after the key table

9. Fit Chinese Input Method

shift: Toggle between English and Chinese
Command + Space: Toggle Input Method
Shift + Space: full-width character switching
Control +.: Punctuation Toggle in English and Chinese
Control + T: Simplified traditional input switch

The Fit Input method is a "good enough" input method even though it has stopped continuing to develop and is maintained by tianyu263 alone. Like all modern input methods, it has the ability to "automatically learn" based on user input (that is, automatically remembers the user's choice). For example, when you select a "Custom Vocabulary" and then enter the same pinyin later, the "Custom Vocabulary" is ranked first. However, sometimes accidentally entered the error, for example, obviously want to enter "custom Vocabulary", but entered into a "custom word will", then once you enter this pinyin, "custom times" will be ranked first. In this case, you can enter the "custom vocabulary" after the pinyin does not press "space" or "enter", but by Option + 1: Delete the "wrong memory", and then re-select the correct:

Finally, for the use of "desktop keyboards", see this article I found on Harvard's website: "Cocoa Text system–default Mac OS X System Key Bindings" 4.

      1. However, I wonder why most of the documents that introduce shortcut keys are not "categorized by function" but "alphabetically"-who remembers? [?]
      2. As Windows turned over the user, find this key combination spent a good while ... [?]
      3. I can't get it out. The MacBook presses the option key on the soft keyboard picture and has to find a picture of the desktop keyboard on the Web [?]
      4. The last two are also from this article.

Xcode shortcut key-Gray often practical shortcut keys, later programming more quickly

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.