Modify the shortcut key of the Black Apple Mac System

Source: Internet
Author: User
Tags apple keyboard

Modify the shortcut key of the Black Apple Mac System


Today, we will introduce how to modify the shortcut keys of the Black Apple Mac system:



Because the keyboard of the Apple Computer is different from that of the ordinary PC computer, the shortcut keys of the Apple Computer are also different from those of the ordinary PC, which is inconvenient for those of us who often use the keyboard, the differences between the two are attached below:


Normal keyboard:




Apple keyboard:




Can refer to: http://support.apple.com/kb/HT1343? Viewlocale = zh_cn, which is officially provided by Apple.


Modify the shortcut key. The software I recommend is keybindingseditor, which is very useful. Note that the modification takes effect only after restart.

In addition, the file corresponding to the shortcut key is:

/System/library/frameworks/appkit. Framework/versions/C/resources/standardkeybinding. dict. All the modifications are for this file. Back up the file first!

We can see that alt corresponds to command (also known as the apple key, with one space on each side. Because there is a flower in the upper right corner, it is also called a spline); Windows logo corresponds to option; CTRL corresponds to control


Symbol:




(1) Ctrl + C, CTRL + V, CTRL + X, CTRL + Z, CTRL + Y, CTRL + A, CTRL + S

These Shortcut Keys mean copy, paste, cut, undo, redo, select all, and save. On the apple machine, it becomes: Command + C, command + V, command + X, command + Z, Shift + command + Z, command + A, command + S. You just need to press a finger holding down CTRL on alt. I prefer not to change it. I will not get used to it at the beginning, and it will be fine later.

However, in xcode, I strongly recommend you modify them because the Alt key and the X and C keys are too close to each other and it is not convenient to press them at the same time. First, let's look at the edit menu bar of xcode, we need to modify undo, redo, cut, copy, paste and select all to Ctrl + Z, CTRL + Y, CTRL + X, CTRL + C, respectively, CTRL + V and CTRL +. They are most commonly used:



In addition, we can also take a look at the xcode run menu. During single-step debugging, we usually need to press three keys, which is inconvenient for people who are familiar with Visual Studio debugging methods, therefore, we replace debug, step into, and step over with F5, F11, and F10:



The modification method is as follows:

Open System Preferences, select keyboard/keyboard shortcuts, select Application shortcuts on the Left bar, and click the plus sign on the right:



In application, select xcode and enter the title of the menu item to be modified in menu title. The title must be consistent (such as copy, paste, and cut). In keyboard shortcut cut, type the shortcut key (For example, CTRL + C,CTRL + VAndCTRL + xAnd so on), As follows:



The modified results are as follows:



In addition, because F10 is already in conflict with application windows, you can remove the preceding check box if it is not commonly used:



Now, let's take a look at the xcode menu. It has changed:





In addition, you can modify the save, find... and other menus. The advantage of the above modification is that it is only valid for a single application. You can also modify applications such as safari, chrome, and textedit.



(2) Home, end

The Home key is used to move the cursor to the beginning of the row, the end key is used to move the cursor to the end of the row, CTRL + home is used to move the cursor to the beginning of the file, and the end key is used to move the cursor to the end of the file. However, directly pressing the Home key on the Apple machine will move the cursor to the beginning of the file. Directly pressing the end key will move the cursor to the end of the file, which is inconvenient. Therefore, it is necessary to change the value.

Open with keybindingseditor:

/System/library/frameworks/appkit. Framework/versions/C/resources/standardkeybinding. dict (Please back up first !), As follows:



Find the Home key:




In actions, modify scrolltobeginningofdocument to movetoleftendofline, as shown below:




Similarly, change the end key to movetorightendofline.


In addition, click Add binding to add the shortcut key Ctrl + home to move the cursor to the beginning of the segment (scrolltobeginningofdocument), CTRL + end to move the cursor to the end of the segment (scrolltoendofdocument), as shown below (prompt, you only need to select keystroke to modify the shortcut key ):




In addition, we also need to modify SHIFT + home to show that the current cursor is selected at the beginning of the line,Shift + home indicates that the current cursor is selected to the beginning of the text,Shift + end indicates that the current cursor is selected to the end of the row:

Movetoleftendoflineandmodifyselection and movetorightendoflineandmodifyselection






(3) Windows logo + R

Windows logo + R indicates that the running window is displayed. You can run a program quickly by entering the command. Spotlight (the magnifier icon in the upper-right corner of the menu in the finder) on the Apple Server also has the same function. Therefore, we can replace the shortcut key for activating spotlight with the Windows logo + R:

Open System Preferences, select keyboard, select spotlight, and change the shortcut key to win + R.




(4) Windows logo + d

Windows logo + D indicates that all windows are temporarily hidden, and the desktop is displayed. It is very fast for us to open a file on the desktop immediately. The F11 on Apple also has the same function, so we can replace F11 with the Windows logo + D:

Like step 3, select expose & spaces and change the shortcut key to win + D.




(5) switch the input method:

In Windows, we use Ctrl + space to switch the input method. In Mac, we can use command + space. This is the default Mac method, for example, on the right. However, it is not enabled by default, therefore, we need to manually enable:



Open System Preferences, select keyboard & text input, and select the previous Input Source:

NOTE: If we also select the one below, there will be a triangle exclamation mark indicating that the shortcut key is repeated, so we do not select it:



(6) alt + F4 close the window and rename F2

I want to change it. Unfortunately, I cannot find the modification method for the time being.




Other common shortcut keys:

Finder:

Command + N: A New finder window is opened.




Others:

F12: dashboard display





Done!

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.