The original article is reprinted from liu Yue’s Technology blog v3u.cn/a_id_191
Recently a friend told me, said he hired a new company, the company also good, to give him with a Mac, but he has been in the Windows environment development, don’t know Mac OS, he felt very helpless, so this, we come to share, when there is a new hand head of Mac, how should we get started operation and configuration, Let it be a good helper of our development.
First of all, let’s take a look at the differences in key positions. The keyboard of traditional Windows system is dominated by the Control key, with the left little finger as the benchmark and the index finger as the radiation range. The combination of shortcut keys, for example, we are very familiar with Control + C and Control + V:
Mac system keyposition is based on the Command key, with the left thumb as the benchmark, index finger as the radiation range, combination of shortcut keys, used to Windows friends as long as the mind of the original control key to command can be changed, so it is convenient for a lot of:
Next, let’s look at Mac shortcuts:
At first glance, I rely, how so much, in fact, we do not have to remember so much at the beginning, as long as remember some commonly used shortcut keys can:
So first of all, I’m going to open finder, and finder on a MAC is the same as finder on a Windows computer, and all the files on the computer are going to be displayed in Finder, and if you want to select a file, you don’t need a mouse, you just hit TAB, and you can select it again by clicking a few times. You can see some properties of the file, so the first shortcut, command + I, can be interpreted as information for easy memorization. Ok, how do I close this information window? You can use command w, so you can close any window by command w, so w can be interpreted as a wave, which means wave goodbye, and command w, which means close the window.
So let’s copy a file, command + C, c stands for copy and that’s not very different from copying a file in Windows, command + V, paste, copy and paste is something that we do a lot, so on Windows, there’s always an operation called cut, The shortcut keys are Control + X, and if you want to cut files on a MAC, you need to use command + Option + V to cut files.
Sometimes you need to change the file name. On the MAC, you can easily change the file name by selecting the file and pressing Enter. In addition, you can use command + and Command – to enlarge and modify the icon.
Another commonly used key combination is: Command q, we know that you can use command + w to close the window, but you can’t exit the program. If you want to exit the program completely, you can use command + q to exit the program completely, q means quit. For example, if I open the sfari browser, Command + q can exit, while command W can close only one browser window.
In addition to shortcuts, we’re going to introduce a path bar setting that’s often used in finder. You can see that in my Finder folder I have a file path for the current directory, and it’s very easy to see the directory above it. This is not shown by default, so you have to open it manually, so in the Show menu in Finder, I can just go to the show path bar, which I can copy, and I can easily go to the file in the terminal, and in the terminal, I can go to finder very easily, and I can type open. B: Yes, it’s very convenient
Let’s take a look at the Settings of the trackpad. Click system preferences and select the trackpad. The default tap is not selected in the options of cursor and tap.
Personal advice in more gestures options, I swept through between the page to cancel, because at the time of view web pages, very easily by accident, such as open a webpage, double back page refers to cross to the left, right is going, suppose that we are editing a form, once mistakenly hit back, the data is lost, so I cancel the swept off the page, use keyboard shortcuts instead. So command goes backwards, command goes forwards, which is pretty handy.
Take a look at the Mac OS’s super handy three-finger drag and drag feature, which hides its Settings in system preferences – Accessibility – Pointer Controls – and trackpad options
The advantage of three-finger drag is that we no longer need to press and hold the trackpad to move the cursor element, only need three finger tap can freely drag files, increasing the flexibility and smoothness of operation.
Many people are uncomfortable with the Mac OS search feature. In Finder, the default search is global, which means to search all the places on your local disk. It is slow, and if you want to search only in the current folder, you need to click again:
Then said I personally like the trigger Angle, in system preferences to choose desktop and screen saver, click the screen saver option trigger Angle, I usually use the two on the right side of the screen Angle, because the right near the cursor will be more, can trigger faster, and the left trigger Angle need cursor lateral movement can trigger for a period of time, It would be extremely inconvenient to use a trackpad. Once the cursor moves to the upper right corner, it can easily select the current task. If the cursor moves to the lower right corner, it can immediately switch to the desktop.
In this case, if the boss suddenly comes in at work, we can easily cut back to the desktop by using the trigger Angle, but it will also lead to another embarrassing situation, the boss will question you, why do you stare at the desktop every time he comes in?
Let’s take a look at the terminal often used in development. In the latest BIG SUR system of M1 chip MAC, the terminal uses ZSH instead of bash terminal. We can choose our favorite color and font size in the terminal preference Settings. The real advantage of Zshell is that it has more functions than Bash. For example, if I want to locate a file quickly in the terminal, DOUBLE click the TAB key to complete the file, and double click again, I can move the file directly in the terminal, very convenient.
If you use bash on older Macs, such as mojave macs, you can use this script to upgrade bash directly to zshell. If ZSH is displayed, it means no upgrade is required. If it is, copy this script to the terminal and press Enter to run it:
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Copy the code
Finally, talk about the MAC system input method, it is also a lot of friends have a headache, in system preferences, language and region, and select the keyboard preferences, here you will find English is removed, a minus sign is gray, and sogou input method it is their own English, use the shift key on the left you can switch. On the MAC, it sometimes cuts you to the default English input method, so you have to use command+ space to cut back to the search engine, which is very awkward. Can you delete the default English input method? Yes. Here we use a third-party configuration modification tool,Plist Edit Pro, and here is the installation package:
https://pan.baidu.com/s/1DMPXh7Oed6lftooz54BgTQ password: nj06Copy the code
After the installation is successful, open the terminal and enter the command:
sudo open ~/Library/Preferences/com.apple.HIToolbox.plist
Copy the code
The system opens the file directly using Plist Edit Pro
Delete the child node under AppleEnabledInputSources with the word ABC, then save the file and restart the computer. After the restart, you can find that the input method is only Chinese Sogou input method. After switching Chinese and English, you can directly use the left shift key, which is more convenient, but in fact, deleting the system input method will also bring some bugs, the author found that if the Mac of M1 chip wants to connect to ipv4 network through the way of wired IP address, Therefore, if you want to manually specify the IP through the system Settings, you have to add the English input method back. Fortunately, the operation is not complicated.
Conclusion: This is about the basic setup of THE M1 MAC system. If you want to know the MAC OS is extensive, you need to rely on your own in-depth research. Here is just a piece of introduction brick.
www.bilibili.com/video/BV1BK…
The original article is reprinted from liu Yue’s Technology blog v3u.cn/a_id_191