Galabyca
Galabyca

Reputation: 153

Reformating code creates a new build

I often modify spaces, statement alignments and tabulations manually instead of using CTRL+ALT+L for formating my code. Then, it takes a long time to launch my app because Android Studio creating a new build even if the code itself is the same.

enter image description here

Is there a way to change this setting ?

Upvotes: 0

Views: 35

Answers (1)

Code-Apprentice
Code-Apprentice

Reputation: 83517

Android Studio compiles any file when it changes. Even if the change is just in formatting, it will be recompiled. I suggest that you make sure the formatting is the way you want it when you write the code to begin with. Android Studio is very good at helping you with this by automatically indenting when it deems it appropriate. Don't fight against Android Studio's default behaviors -- or else configure Android Studio to the formatting settings you wish to use.

Upvotes: 1

Related Questions