保存時にOptimizationImportsとReformatCodeを行う方法を説明します。保存時にこれを行わないと不要なimportがコミットに含まれたりしてイラッ☆としますよね。 結論から言うとマクロ作ってCmd+Sのショートカットにマクロを割り当てるだけです! 環境 Android Studio 0.5.2 Mac OS X 10.9.3 方法 マクロをスタート
Android Studioでプロジェクトを新規で作る時、テンプレートは何を選択していますか? テンプレートには自動でNavigation Drawerを生成してくれるものや、最近だと広告をつけてくれるものなど色々ありますが、実際のところ、Add No Activityを選択するか、Blank Activityを選択する人が多いのではないのでしょうか。 テンプレートはプロジェクト作る時に必ず通るのですが、正直あまりイケてると思えないので、今回もうちょっとましなテンプレートを作ってみました。 Android Studioの標準テンプレートの問題点 Android Studioの標準テンプレートの問題点としては、以下があると思います。 余計なリソースファイルやコードが自動で生成されてしまう →例えば、Blank Activityだと、activityごとのmenu(menuリソース + onC
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く