Moved to AndroidStudio on Ubuntu. And hotkey does not work correctly, namely Ctrl + Alt + L, which in theory should align the code. Instead, the monitor turns off for a couple of seconds.

  • 2
    In the visual shell, you must disable this hot key. - Andrew Bystrov
  • @Andrew Bystrov can be a bit more detailed) - Morozov

1 answer 1

If you have some hotkey behave "unusually", then most likely they are used by your visual shell. In particular, I have this Unity. To see which one you have, open Terminal and enter the following command:

echo $XDG_CURRENT_DESKTOP 

Next, go to our "System Settings", where we find the "Keybord". Click on the icon with the keyboard, where we see two fields: "Typing" and "Shortcuts", we need the second. You will see a dialog box with a lot of commands on the left and hot keys on the right. We find those that are used by the system, in my example it was Ctrl + Alt + L, and change to any others. Hooray, now in Android Studio we can use this hotkey.