Troubleshooting on Mac
One problem I faced when I first set up my Mac was that the keyboard shortcuts did not work; instead of getting the desired action, I got weird Greek letters appearing here and there. At first, I thought this was PyCharm's fault, but it wasn't.
The main problem was that the keyboard layout I was using, U.S., had special characters appearing when the Alt/Option key was pressed. In order to actually use my keyboard shortcuts, I had to change my layout to something that did not have these special characters appearing. Here is the solution to this problem.
- Download the key mapping file from Packt's website.
- After you've downloaded it, move it to
~/Library/Keyboard Layouts
. - Once you've saved the file there, all you need to do is make it your main keyboard layout. To do this, you need to head over to System Preferences:
- Go to Keyboard:
- And then, choose to add a new one by clicking on the + button:
- Choose Others, as shown in the following screenshot:
- Once...