Cookpad Android Code Style
Java
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea
example
gradle/wrapper
ideaPreferences
.gitignore
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

IDE settings for Cookpad Android Style

This is an Android Studio settings for the Cookpad coding style standard.

To introduce this settings, save the codeStyleSettings.xml to .idea/, add !.idea/codeStyleSettings.xml to .gitignore, and restart Android Studio.

# in an android project:
curl -L "https://raw.githubusercontent.com/cookpad/android-code-style/master/.idea/codeStyleSettings.xml" > .idea/codeStyleSettings.xml
# restart Android Studio!
# .gitignore
.idea/*
!.idea/codeStyleSettings.xml

If you want to apply this settings for all projects, execute below script and restart Android Studio.

# for macOS
curl -L "https://raw.githubusercontent.com/cookpad/android-code-style/master/ideaPreferences/codestyles/CookpadStyle.xml" > ~/Library/Preferences/AndroidStudio<version>/codestyles/CookpadStyle.xml
curl -L "https://raw.githubusercontent.com/cookpad/android-code-style/master/ideaPreferences/options/code.style.schemes.xml" > ~/Library/Preferences/AndroidStudio<version>/options/code.style.schemes.xml
# restart Android Studio

See Also