How can I reformat (add indentations) to my XML code in android studio 2.3.3 for windows? I have tried ctrl+alt+L but it is not working.
Asked
Active
Viewed 1,131 times
0
-
Possible duplicate of https://stackoverflow.com/questions/16580171/code-formatting-shortcut-in-android-studio – Maaaatt Aug 04 '17 at 21:05
-
thanks i got it it is alt+ctrl+shift+L – Aug 04 '17 at 21:11
-
Since the actual command has `L` (capital L) in it, you need to use `shift` key too. – zeekhuge Aug 04 '17 at 21:11
-
thank you very much – Aug 04 '17 at 21:13
-
Asif if you have got the answer I consider you to close the question or mark an answer correct. – Rishav Aug 04 '17 at 21:32
-
If you have received an adequate answer to your question, please mark an accepted answer. – SandPiper Aug 05 '17 at 00:32
-
2Possible duplicate of [Code formatting shortcut in Android studio](https://stackoverflow.com/questions/16580171/code-formatting-shortcut-in-android-studio) – Nico Van Belle Aug 05 '17 at 05:13
2 Answers
3
Go to System Tools -> System Settings -> Keyboard -> Shortcuts Tab -> System -> Lock Screen
Ubuntu: Ctrl + Alt + L
MAC: Option + Command + L

Harshit Trivedi
- 764
- 9
- 33