Reputation: 918
Is there a possible way to make Android studio format the code automatically without pressing CTRL +ALT+L?
I mean is this option available like the automatic import?
Thank you
Upvotes: 5
Views: 5123
Reputation: 198
There is no way to do that automatically. But you can create a macro that will do it for you.
For example, I changed the short-cut use to save CTRL+S by a macro that format the code then save. It's very usefull when you save a lot.
To do so :
Hope that help.
Upvotes: 13