Android studio 的快捷鍵 MAC 和Win版本
阿新 • • 發佈:2019-01-05
功能描述 | keymap對應名字 | Mac | Win/Linux |
---|---|---|---|
提示錯誤解決方案 | Show Intention Actions |
option + enter |
alt + enter |
AS配置介面 | Preferences |
command + , |
control+alt+S |
工程專案配置介面 | Project Structure |
command + ; |
Control+Alt+Shift+S |
快速構成程式碼 | Code Generate |
command + N |
alt + insert |
程式碼提示 | Completion/Basic |
control + space (mac會衝突, 手動修改) |
ctrl + 空格 (win同樣大部分和輸入法衝突, 手動修改) |
選擇檢視 | select in any view |
option + F1 |
alt + F1 |
新增書籤標識 | 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 |
快捷向下複製行 | 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 |
檔案方法結構 | 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 |
提示引數型別 | 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 |
視窗內所有程式碼摺疊/展開 | Collapse/Expand All |
command + shift + 減號/加號 |
ctrl + shift + 減號/加號 |
查詢檔案 | Navigate/File |
command + shift + O |
ctrl + shift + N |
全路徑中替換 | Replace in Path |
command + shift + R |
ctrl + shift + R |
大小寫轉換 | 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 |
複製 | Copy |
command + C |
ctrl + C |
去除無效包引用 | Optimize Imports |
control + option + O |
ctrl + alt + O |
顯示類關係繼承體系 | Type Hierarchy |
control + H |
ctrl + H |
快速覆寫方法 | override Methods |
control + O |
ctrl + O |
查詢呼叫的位置 | Call hierarchy |
control + option + H |
ctrl + alt + H |
新增書籤 | Toggle Bookmark |
F3 |
F11 |
擴大縮小選中範圍 | Extend Selection/Shrink Selection |
option + UP/Down |
ctrl + W + shift + W |
跳轉到父類 | Super method |
command + U |
ctrl + U |
關閉當前tab標籤 | Editor Tabs / Close |
command + W |
ctrl + shift + a |
關閉除編輯視窗的其餘視窗 | Hide All Tool Windows |
command + shift + F12 |
ctrl + shift + F12 |
預覽方法定義 | Quick Definition |
command + Y |
ctrl + shift + I |
返回游標最後編輯位置 | Last Edit Location |
command + shift + delete |
control + shift + Backspace |
調到程式碼塊首部/尾部 | 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 |
抽取引數 | Extract Parameter |
command + option + P |
control+alt+P |
重構入口 | Refactor This |
control + T |