2,207 バイト追加
、 2020年2月15日 (土) 07:30
==Android Studio==
==キーボードショートカット==
*https://developer.android.com/studio/intro/keyboard-shortcuts.html?hl=ja
*http://qiita.com/takke/items/5cbc629f7f65d6a49906
====IntelliJ IDEA ====
*https://resources.jetbrains.com/storage/products/intellij-idea/docs/IntelliJIDEA_ReferenceCard.pdf
===検索===
{|class="wikitable"
!内容
!ショートカット
|-
|すべてを検索 (コードとメニューを含む)
|shiftキーを2回押す
|-
|ファイルから文字列を検索
|検索位置を指定して、shift+ctrl+f
|-
|}
====ファイル構造のポップアップを開く====
*Ctrl + F12
===編集===
{|class="wikitable"
!内容
!ショートカット
|-
|エラーの解消
|alt + enter
|-
,メソッド移動
|alt + ↑,alt + ↓
|-
|メソッド一覧
|ctrl + F12
|-
|}
====ソースの編集====
{|class="wikitable"
!内容
!ショートカット
|-
|行の移動
|shift + alt + up/down
|-
|行の削除
|ctrl + y
|-
|
|
|-
|}
====編集中のソースをツリーでハイライト====
*Autoscroll from source
[[File:0156_as_autoscroll_from_src.jpg]]
====画面を分割====
*Window→Editor Tabs→Split(horizontal/Vertical)
===ヘルプ===
{|class="wikitable"
!内容
!ショートカット
|-
|メソッドのヘルプ
|メソッドにカーソルを置いて、Ctrl+Q
|-
|行またはブロックのエラーの修正方法を表示する
|Alt+Enter
|-
|}
==デバッグ==
====スクリーンキャプチャ====
*Logcatのカメラアイコン
[[File:0157_as_screen_capture.jpg]]
====ビルド キャッシュの削除====
*https://developer.android.com/studio/build/build-cache?hl=ja
=====Windows=====
gradlew cleanBuildCache
=====Mac/Linux=====
./gradlew cleanBuildCache
==設定==
====設定画面====
*File - Settings
====import文の自動整理====
*File-Settings-Editor-General-Auto Import-Optimize import on the fly
====Debugのコンパイルオプション====
*File - Settings - Build,Execution,Deployment - Debugger - Compiler : Command -line Options に、"--stacktrace"
==トラブル==
====実機を認識しない====
*File - Project Structure から プロジェクトSDKが設定されているか確認
[[File:0155_android_studio_sdk.png]]