diff --git a/README.md b/README.md index f11a6a4..35572ba 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Java Code Styles ================ -IntelliJ IDEA code style settings for Square's Java and Android projects. +IntelliJ IDEA code style settings for Mapzen's Java and Android projects. Installation @@ -11,3 +11,4 @@ Installation * Restart IntelliJ if it's running. * Open IntelliJ Project Settings -> Code Styles, change the code style for the project to the one you want. + diff --git a/configs/Mapzen.xml b/configs/Mapzen.xml new file mode 100644 index 0000000..9079d5c --- /dev/null +++ b/configs/Mapzen.xml @@ -0,0 +1,320 @@ + + + + + + diff --git a/configs/MapzenAndroid.xml b/configs/MapzenAndroid.xml new file mode 100644 index 0000000..cd792da --- /dev/null +++ b/configs/MapzenAndroid.xml @@ -0,0 +1,426 @@ + + + + + diff --git a/configs/Square.xml b/configs/Square.xml deleted file mode 100644 index 3b3d125..0000000 --- a/configs/Square.xml +++ /dev/null @@ -1,247 +0,0 @@ - - - - - - - diff --git a/configs/SquareAndroid.xml b/configs/SquareAndroid.xml deleted file mode 100644 index f32574e..0000000 --- a/configs/SquareAndroid.xml +++ /dev/null @@ -1,218 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/install.sh b/install.sh index 17fe044..76e932b 100755 --- a/install.sh +++ b/install.sh @@ -1,15 +1,19 @@ #!/bin/bash -# Installs Square's IntelliJ configs into your user configs. +# Installs Mapzen's IntelliJ configs into your user configs. -echo "Installing Square code style configs..." +echo "Installing Mapzen code style configs..." -for i in $HOME/Library/Preferences/IntelliJIdea*/codestyles \ +for i in $HOME/.IntelliJIdea*/config/codestyles \ + $HOME/.IdeaIC*/config/codestyles \ + $HOME/.AndroidStudio*/config/codestyles \ + $HOME/Library/Preferences/IntelliJIdea*/codestyles \ $HOME/Library/Preferences/IdeaIC*/codestyles \ $HOME/Library/Preferences/AndroidStudio*/codestyles + do cp -frv $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/configs/* $i 2> /dev/null done echo "Done." echo "" -echo "Restart IntelliJ and/or AndroidStudio, go to preferences, and apply 'Square' or 'SquareAndroid'." +echo "Restart IntelliJ and/or AndroidStudio, go to preferences, and apply 'Mapzen' or 'MapzenAndroid'."