Android studio 的快捷键 MAC 和Win版本
生活随笔
收集整理的這篇文章主要介紹了
Android studio 的快捷键 MAC 和Win版本
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
| 提示錯誤解決方案 | Show Intention Actions | option + enter | alt + enter |
| AS配置界面 | Preferences | command + , | control+alt+S |
| 工程項目配置界面 | Project Structure | command + ; | Control+Alt+Shift+S |
| 快速構(gòu)成代碼 | Code Generate | command + N | alt + insert |
| 代碼提示 | Completion/Basic | control + space(mac會沖突, 手動修改) | ctrl + 空格(win同樣大部分和輸入法沖突, 手動修改) |
| 選擇視圖 | select in any view | option + F1 | alt + F1 |
| 添加書簽標(biāo)識 | Toggle Bookmark | option + F3 | ctrl + F11 |
| 向下移動一行 | Move Line Down | option + shift + Down | alt + shift + Down |
| 向上移動一行 | Move Line Up | option + shift + Up | alt + shift + Up |
| 注釋代碼 | Comment with Line Comment | command + / | ctrl + / |
| 用代碼模板包裹代碼 | surround with Live Template | command + option + J | ctrl + alt + J |
| 格式化代碼 | Reformat Code | command + option + L | ctrl + alt + L |
| Copy Reference | Copy Reference | command + option + shift + C | ctrl + alt + shift + C |
| if/try等包裹代碼 | Surround With.. | command + option + T | ctrl + alt + T |
| 查看聲明 | Declaration | command + B | ctrl + B |
| 快捷向下復(fù)制行 | Duplicate Line or Block | command + D | ctrl + D |
| 刪除行 | Delete Line | command + delete | ctrl + Y |
| 快捷最近打開 | Recent Files | command + E | ctrl + E |
| 查找 | Edit/Find/Find | command + F | ctrl + F |
| 文件方法結(jié)構(gòu) | File Structure | command + F12 | ctrl + F12 |
| 顯示書簽 | Show Bookmarks | command + F3 | shift + F11 |
| 代碼高亮向下查找 | Move To Next Occurrence | command + G | F3 |
| 代碼高亮向上查找 | Move To Previous Occurrence | command + shift + G | shift + F3 |
| 按照模板生成代碼 | Insert Live Template | command + J | ctrl + J |
| 定位到行 | Navigate/Line | command + L | ctrl + G |
| 快速到行首/尾 | Move Caret to Line Start/End | command + Left/Right | ctrl + Left/Right |
| 代碼折疊/展開 | Collapse/Expand | command + 減號/加號 | ctrl + 減號/加號 |
| 查找類 | Navigate/Class | command + O | ctrl + N |
| 多行注釋 | Code/Comment | command + option + / | ctrl + alt + / |
| 格式化代碼 | Reformat Code | command + option + L | ctrl + alt + L |
| 提示參數(shù)類型 | Parameter Info | command + P | ctrl + P |
| 查找替換 | Replace | command + R | ctrl + R |
| 查找命令 | Find Action | command + shift + A | ctrl + shift + A |
| 拷貝文件路徑 | Copy Paths | command + shift + C | ctrl + shift + C |
| 移動代碼塊 | Move Statement Up/Down | command + shift + down/up | ctrl + shift + down/up |
| 代碼補全 | Complete Current Statement | command + shift + enter | ctrl + shift + enter |
| 全路徑查找 | Find in Path | command + shift + F | ctrl + shift + F |
| 代碼高亮 | Highlight Usages in File | command + shift + F7 | alt + J |
| 窗口內(nèi)所有代碼折疊/展開 | Collapse/Expand All | command + shift + 減號/加號 | ctrl + shift + 減號/加號 |
| 查找文件 | Navigate/File | command + shift + O | ctrl + shift + N |
| 全路徑中替換 | Replace in Path | command + shift + R | ctrl + shift + R |
| 大小寫轉(zhuǎn)換 | Toggle Case | command + shift + U | ctrl + shift + U |
| 顯示粘貼版歷史 | Paste from History | command + shift + V | ctrl + shift + V |
| 快速查找定義 | ? | command + space | ctrl + shift + I |
| 粘貼 | Paste | command + V | ctrl + V |
| 復(fù)制 | Copy | command + C | ctrl + C |
| 去除無效包引用 | Optimize Imports | control + option + O | ctrl + alt + O |
| 顯示類關(guān)系繼承體系 | Type Hierarchy | control + H | ctrl + H |
| 快速覆寫方法 | override Methods | control + O | ctrl + O |
| 查找調(diào)用的位置 | Call hierarchy | control + option + H | ctrl + alt + H |
| 添加書簽 | Toggle Bookmark | F3 | F11 |
| 擴大縮小選中范圍 | Extend Selection/Shrink Selection | option + UP/Down | ctrl + W + shift + W |
| 跳轉(zhuǎn)到父類 | Super method | command + U | ctrl + U |
| 關(guān)閉當(dāng)前tab標(biāo)簽 | Editor Tabs / Close | command + W | ctrl + shift + a |
| 關(guān)閉除編輯窗口的其余窗口 | Hide All Tool Windows | command + shift + F12 | ctrl + shift + F12 |
| 預(yù)覽方法定義 | Quick Definition | command + Y | ctrl + shift + I |
| 返回光標(biāo)最后編輯位置 | Last Edit Location | command + shift + delete | control + shift + Backspace |
| 調(diào)到代碼塊首部/尾部 | Move Caret To Code Block | Option + Command + [ 或者 ] | Control+[ 或者 ] |
| 重命名 | Rename | shift + F6 | shift + F6 |
| 抽取方法 | Extract Method | command + option + M | control+alt+M |
| 抽取變量 | Extract Variable | command + option + V | control+alt+V |
| 抽取字段 | Extract Field | command + option + F | control+alt+F |
| 抽取常量 | Extract Constant | command + option + C | control+alt+C |
| 抽取參數(shù) | Extract Parameter | command + option + P | control+alt+P |
| 重構(gòu)入口 | Refactor This | control + T | ctrl + alt + shift + T |
最近操作 Command +E(mac) ? ? Ctrl +E ? (win)
最近修改 Command +Shift +E ?(mac) Ctrl +shift +enter (win)
文件查找 Command +o (mac) Ctrl +n (win)
比上邊的那個級別更高 查找 Command +shift+ o(mac) Ctrl +shift +n (win)
操作記錄 Command +option +Left\Right ? ?(mac) Command +[ ? \ ]
Ctrl +alt ? ? +左右鍵(win) ?
移動行? option+shift + ?方向鍵上\下(mac) Alt +shift + 方向鍵 上\下(win)
查找方法的調(diào)用處 option+F7 ? (mac) Alt +F7 ? (win)
方法的跟進 Command +B ?(mac) Ctrl +alt +B (win)
顯示方法的參數(shù): command+p (mac) Ctrl +p ? ?(win)
行的快速操作: 快速刪除行 ?command +X ?(Mac) 快速復(fù)制行 ?Command +D (Mac) Ctrl D (win)
多行操作 按住 option ? ?然后拖住鼠標(biāo) Win 中是 ?alt
快速補全 Command +shift +enter ?(mac) Ctrl +shift +enter ?(win)
快速 生成變量 Option +enter (mac) Alt +enter (win)
代碼的折疊
Command + ?加號和減號 (mac) Ctrl + 加號和減號
預(yù)覽方法的定義 command +Y ?(mac) Ctrl +shift +I ? (win )
抽取方法? Command +option +M? Ctrl +alt +M
重構(gòu)入口 Ctrl +T?
Ctrl +alt +shift ?+T
原文地址:https://blog.csdn.net/zq019/article/details/54618185
總結(jié)
以上是生活随笔為你收集整理的Android studio 的快捷键 MAC 和Win版本的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Android Studio目录结构分析
- 下一篇: 解决夜神模拟器无法联机调试 adb s