Hesam
Hesam

Reputation: 53600

How to apply code style in IntelliJ/AndroidStudio to whole project?

I have recently changed my code style and I want to apply it to the whole project and commit it to repo in one shoot.

I'm able to reformat a class by Ctrl+Alt+L but it only applies to a single open class. I'm looking for a way to apply my change all classes of project. Is it possible?

Upvotes: 1

Views: 498

Answers (1)

Jaron Thatcher
Jaron Thatcher

Reputation: 824

Try selecting the radio button "Whole Project" instead of the individual file under Code>Reformat

Additionally, you could right click the folder in the tree and choose Reformat from there.

Upvotes: 2

Related Questions