Android code style settings for Android Studio at grandcentrix
Code formatting rules for Android Studio
android:id
after xmlns
declaration in XML layoutspublic
-private
))Just run the install
script.
It will automatically copy the latest Code Style to each existing AndroidStudio
and AndroidStudioPreview
version you have installed.
grandcentrix.xml
into (MacOS) ~/Library/Preferences/AndroidStudio{VERSION}/codestyles/
or (Linux) ~/.AndroidStudio{VERSION}/config/codestyles/
Preferences --> Editor --> Code Style
.The codestyle will be enabled/used for all projects that are used with AndroidStudio!
If the codestyle is added to the git repository and IntelliJ is configured accordingly each project can have it’s own style.
grandcentrix.xml
locally (see above)Preferences --> Editor --> Code style
Scheme:
drop downStored in the IDE
section select grandcentrix
Copy to project
Finally add the code style to the git repository:
git add -f .idea/codestyles/Project.xml .idea/codestyles/codeStyleConfig.xml
To contribute just change the code style locally to your needs.
Then you can create a PR to this repository.
The PR should always contain:
grandcentrix.xml
.