Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Indent code shortcut in Android Studio [duplicate]

In Eclipse one can indent code by Ctrl+shift+F Unfortunately, this does not work in Android Studio.

Is there any opportunity doing this in Android-Studio?

like image 513
Blnpwr Avatar asked Mar 03 '26 10:03

Blnpwr


1 Answers

You have pretty much two options:

  1. Change keymapping from Settings -> Keymap, and select Eclipse keymap

  2. You can use the default which is CTRL + ALT + L

EDIT: people in the comments are suggesting that CTRL + ALT + WinKey+Lis the correct binding for Linux but the document of IDEA tells you that it's the same with Windows mapping: https://resources.jetbrains.com/assets/products/intellij-idea/IntelliJIDEA_ReferenceCard.pdf

EDIT #2: I sniffed some more info and found this answer https://askubuntu.com/a/412060. So after all you might get in trouble with the default keymapping when using, lets say Ubuntu, so watch out :)

like image 127
vilpe89 Avatar answered Mar 05 '26 00:03

vilpe89



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!