mac版Android Studioのよく使うショートカット

Pocket
このエントリーを Google ブックマーク に追加

Android Studio のショートカット

メニューのpreferences のKeymapにて設定があり、変更もできます。

入力系

Action      key     説明
Code Completion ⌃ + space コード補完
Complete Current Statement ⇧ + ⌘ + Enter ステートメント補完。セミコロンや括弧などを補完。
Code generate ⌘ + n コード生成メニュー(constructor,getter/setter etc…)を表示
Reformat Code ⌥ + ⌘ + l ソースコードのフォーマット
Optimize Imports… ⌃ + ⌥ + o インポート文の最適化
Rename ⇧ + F6 リネーム
Add Or Remove Caret ⇧ + ⌥ + (click) 複数にキャレットをセット
Comment with Line Comment ⌃ + ⌘ + / コメントアウト
Toggle Comment ⌘ + / 選択行のコメント化・アンコメント化
Next/previous highlighted error F2 , ⇧ + F2 ハイライトされているエラーに移動
Quick fix ⌥ + Enter エラーの修正方法を表示

検索系

Action      key     説明
Find Usages ⌥ + F7 使用箇所を検索
Declaration ⌘ + B 定義にジャンプ
Navigate Class… ⌘ + o クラスを検索
Find ⌘ + f 単語検索
Find Next ⌘ + g 次に一致する単語
Find in Path ⇧ + ⌘ + f パス指定して単語検索
Replace ⌘ + r 単語置換
Recent Files ⌘ + e 過去開いたファイル一覧
Jump to Source ⌘ + (click) ソースへジャンプ
Select Next Tab ⇧ + ⌘ + ] タブ移動

ビルド、実行系

Action      key     説明
Make Project ⌘ + F9 ビルド
Debug ⌃ + ⌥ + d デバッグ実行
Run ⌃ + ⌥ + r 実行
Pocket
このエントリーを Google ブックマーク に追加