「Android Studio」の版間の差分
ナビゲーションに移動
検索に移動
(ページの作成:「==Android Studio== ==キーボードショートカット== *https://developer.android.com/studio/intro/keyboard-shortcuts.html?hl=ja *http://qiita.com/takke/items/5…」) |
|||
| 1行目: | 1行目: | ||
| − | ==Android Studio== | + | ==[[Android Studio]]== |
==キーボードショートカット== | ==キーボードショートカット== | ||
| 6行目: | 6行目: | ||
====IntelliJ IDEA ==== | ====IntelliJ IDEA ==== | ||
| − | *https://resources.jetbrains.com/storage/products/intellij-idea/docs/ | + | *https://resources.jetbrains.com/storage/products/intellij-idea/docs/IntelliJIDEA_[[R]]eferenceCard.pdf |
===検索=== | ===検索=== | ||
| 77行目: | 77行目: | ||
====ビルド キャッシュの削除==== | ====ビルド キャッシュの削除==== | ||
*https://developer.android.com/studio/build/build-cache?hl=ja | *https://developer.android.com/studio/build/build-cache?hl=ja | ||
| − | =====Windows===== | + | =====[[Windows]]===== |
| − | + | [[gradle]]w cleanBuildCache | |
| − | =====Mac/Linux===== | + | =====Mac/[[Linux]]===== |
| − | ./ | + | ./[[gradle]]w cleanBuildCache |
==設定== | ==設定== | ||
====設定画面==== | ====設定画面==== | ||
2020年2月16日 (日) 04:21時点における版
目次
Android Studio
キーボードショートカット
- https://developer.android.com/studio/intro/keyboard-shortcuts.html?hl=ja
- http://qiita.com/takke/items/5cbc629f7f65d6a49906
IntelliJ IDEA
検索
| 内容 | ショートカット |
|---|---|
| すべてを検索 (コードとメニューを含む) | shiftキーを2回押す |
| ファイルから文字列を検索 | 検索位置を指定して、shift+ctrl+f |
ファイル構造のポップアップを開く
- Ctrl + F12
編集
,メソッド移動| 内容 | ショートカット |
|---|---|
| エラーの解消 | alt + enter |
| alt + ↑,alt + ↓ | |
| メソッド一覧 | ctrl + F12 |
ソースの編集
| 内容 | ショートカット |
|---|---|
| 行の移動 | shift + alt + up/down |
| 行の削除 | ctrl + y |
編集中のソースをツリーでハイライト
- Autoscroll from source
画面を分割
- Window→Editor Tabs→Split(horizontal/Vertical)
ヘルプ
| 内容 | ショートカット |
|---|---|
| メソッドのヘルプ | メソッドにカーソルを置いて、Ctrl+Q |
| 行またはブロックのエラーの修正方法を表示する | Alt+Enter |
デバッグ
スクリーンキャプチャ
- Logcatのカメラアイコン
ビルド キャッシュの削除
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が設定されているか確認
© 2006 矢木浩人


