Skip to content

Instantly share code, notes, and snippets.

@Sevastyan

Sevastyan/format.sh

Created Feb 9, 2019
Embed
What would you like to do?
Modified `format.sh` script
#!/bin/sh
# ------------------------------------------------------
# Android Studio formatting script.
# ------------------------------------------------------
IDE_BIN_HOME="${0%/*}"
export STUDIO_PROPERTIES=$IDE_BIN_HOME/format.properties
filesToFormat=$(cat -)
options="$@"
exec "$IDE_BIN_HOME/studio.sh" format $options $filesToFormat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment