2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Android Studio】おすすめの初期設定

Last updated at Posted at 2020-10-01

はじめに

Android Studio用に個人メモとして書こうと思いました。

Xcodeについてはこちら

フォント設定

見やすいフォントに変更しましょう。私のおすすめは、Ricty Diminished (自分でインストールが必要)、サイズが19、Line spacingが1.2です。

File -> Settings -> Editor -> Font

システムのフォント設定

私はフォントはYu Gothic UIのままで、フォントサイズを13に変更してます。

File -> Settings -> Appearance & Behavior -> Appearance -> Use Custom font

ダークモード設定

これは個人的な好みがありますが、私はダークモードにしています。ダークモードのほうが目に優しいそうです。

File -> Settings -> Appearance & Behavior -> Appearance -> ThemeをDarculaに変更。

ショートカットキーの変更 (Windows)

Android Studioは自動保存するので、ctrl + S をフォーマット修正 に割り当ててます。

File -> Settings -> Keymap -> 右の検索ボックスでReformat Codeで、Ctrl + Sを追加

フォーマット修正時にimportの最適化を行う (Windows)

つまり、ctrl + S でフォーマット修正 + importの最適化ができるようになります。

(ちなみに、Save Actionsというプラグインを使用すると、まとめて設定してくれるようです。)

Shift + Ctrl +Alt + L -> Optimize importsとRearrange codeにチェックを入れる

その他フォーマット設定はこちら

ツールバーを小さく表示

これをすることで、コードビュー領域が若干広がります。

Android StudioSettings…Appearance & BehaviorAppearanceUI OptionsCompact modeにチェックをつける

encodingをUTF-8に設定

File -> Settings -> Editor -> File Encodings -> Global Encoding, Project Encoding, Default encoding for properties filesをUTF-8に変更

プロジェクトカラーを変更

こちらの記事を参照してください。

関数の定義に移動・関数が使われいる箇所の表示

Windows: ctrl + B
Mac: cmd + B

プロジェクト全体のファイル検索

Windows: shift + ctrl + F
Mac: shift + cmd + F

Run

Windows: shift + F10
Mac: ctrl + R

emulatorのダークモード設定

emulator右下の「・・・」-> Settings -> General -> Emulator window theme -> Dark

1クリックでフォルダ / ファイルを開く

Project右上の3点リーダーOpen Files with Single Click Open Directories with Single Click にチェックを入れる

singleClick.png

ビルド時にRunタブを開かないようにする

MacのAndroid Studioで複数プロジェクトを開く際、新規ウィンドウで開く

おわりに

一部、作業効率化とは異なるジャンルも含まれてしまいました。Git連携も便利なので書こうと思ったのですが、ここまでにします。

2
1
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?