IDEA 快捷键 Android Studio快捷键
生活随笔
收集整理的這篇文章主要介紹了
IDEA 快捷键 Android Studio快捷键
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
IDEA 快捷鍵 這是從IDEA官網(wǎng)下載的IDEA keymap Windows/Linux,中文我會慢慢補(bǔ)充上去。 因?yàn)锳S是基于IDEA社區(qū)版開發(fā)的,所以快捷鍵都AS同樣適用。
IntelliJ IDEA Default Keymap?
To find any action inside the IDE use
Find Action???? Ctrl+Shift+A/ A??? 查找快捷鍵,action快捷入口的快捷鍵
Editing 編輯
| Ctrl + Space | Basic code completion (the name of any class,method or variable) | 基本的代碼補(bǔ)全 |
| Ctrl + Shift + Space | Smart code completion (filters the list of methodsand variables by expected type) | 智能代碼補(bǔ)全 |
| Ctrl + Shift + Enter | Complete statement | 補(bǔ)全當(dāng)前語句 |
| Ctrl + P | Parameter info (within method call?arguments) | 顯示函數(shù)的參數(shù)信息 |
| Ctrl + Q | Quick documentation lookup | 快速文檔查找 |
| Shift + F1 | External Doc | 外部文檔 |
| Ctrl + mouse?over code? | Brief Info | 簡要信息顯示 |
| Ctrl + F1 | Show descriptions of error or warning at?caret | 顯示錯誤或警告的說明 |
| Alt + Insert | Generate code... (Getters, Setters, Constructors,hashCode/equals, toString) | 生成(Getters, Setters, Constructors,hashCode/equals, toString)代碼 |
| Ctrl + O | Override methods | 重寫方法 |
| Ctrl + I | Implement methods | 實(shí)現(xiàn)方法 |
| Ctrl + Alt + T | Surround with…?(if..else, try..catch, for,synchronized, etc.) | 用if..else, try..catch, for,synchronized等環(huán)繞代碼塊 |
| Ctrl + /? | Comment/uncomment with line comment | 注釋/取消注釋代碼行 |
| Ctrl + Shift + / | Comment/uncomment with block comment | 注釋/取消注釋代碼塊 |
| Ctrl + W? | Select successively increasing code blocks | 依次選擇更多的代碼塊 |
| Ctrl + Shift + W? ??? | Decrease current selection to previous state | 依次減少選擇的代碼塊 |
| Alt + Q? | Context info | ? |
| Alt + Enter? | Show intention actions and quick-fixes | 顯示意圖行動和快速修復(fù) |
| Ctrl + Alt + L | Reformat code | 重新格式化代碼 |
| Ctrl + Alt + O | Optimize imports | 優(yōu)化導(dǎo)入的import |
| Ctrl + Alt + I? | Auto-indent line(s) | 自動縮進(jìn)行 |
| Tab / Shift + Tab? | Indent/unindent selected lines | 縮進(jìn)/取消縮進(jìn) |
| /Ctrl + X?or?Shift + Delete? | Cut current line or selected block to clipboard | 剪切當(dāng)前行或者選中的代碼段到剪切板 |
| Ctrl + C?or?Ctrl + Insert | Copy current line or selected block to clipboard | 復(fù)制當(dāng)前行或者選中的代碼段到剪貼板 |
| Ctrl + V?or?Shift + Insert | Paste from clipboard | 從剪切板粘貼 |
| Ctrl + Shift + V | Paste from recent buffers... | 粘貼最近復(fù)制的內(nèi)容 |
| Ctrl + D | Duplicate current line or selected block | 復(fù)制當(dāng)前行或選中的代碼 |
| Ctrl + Y | Delete line at caret | 刪除行 |
| Ctrl + Shift + J | Smart line join | 智能合并行 |
| Ctrl + Enter | Smart line split | 智能分割行 |
| Shift + Enter | Start new line | 新建一行 |
| Ctrl + Shift + U | Toggle case for word at caret or selected block | 將選中代碼塊轉(zhuǎn)為小寫 |
| Ctrl + Shift + ] / [? | Select till code block end/start | 向前/向后選中代碼段 |
| Ctrl + Delete | Delete to word end | 向后刪除一個單詞 |
| Ctrl + Backspace | Delete to word start | 向前刪除一個單詞 |
| Ctrl + NumPad+/- | Expand/collapse code block | 展開/折疊代碼段 |
| Ctrl + Shift + NumPad+ | Expand all | 全部展開 |
| Ctrl + Shift + NumPad-? | Collapse all | 全部折疊 |
| Ctrl + F4? | Close active editor tab | 關(guān)閉當(dāng)前標(biāo)簽 |
Search/Replace 查找/替換
| Double Shift | Search everywhere | 搜索任何地方的任何東西 |
| Ctrl + F | Find | 查找 |
| F3? ??? ?? | Find next | 查找下一個 |
| Shift + F3 | Find previous | 查找上一個 |
| Ctrl + R? | Replace | 替換 |
| Ctrl + Shift + F | Find in path | 在路徑中查找 |
| Ctrl + Shift + R | Replace in path | 在路徑中替換 |
| Ctrl + Shift + S | Search structurally (Ultimate Edition only) | 查找機(jī)構(gòu)(商業(yè)版有效) |
| Ctrl + Shift + M | Replace structurally (Ultimate Edition only) | 替換結(jié)構(gòu)(商業(yè)版有效) |
Usage Search?查找使用
| Alt + F7 / Ctrl + F7 | Find usages / Find usages in file | 查找使用 |
| Ctrl + Shift + F7 | Highlight usages in file | 在文件中高亮被使用處 |
| Ctrl + Alt + F7 | Show usages | 顯示使用 |
Compile and Run?編譯和運(yùn)行
| Ctrl + F9 | Make project (compile modifed and dependent) | 編譯項(xiàng)目 |
| Ctrl + Shift + F9 | Compile selected file, package or module | 編譯選中的文件、包或者木塊 |
| Alt + Shift + F10 | Select configuration and run | 選擇配置然后運(yùn)行 |
| Alt + Shift + F9 | Select configuration and debug | 選擇哦誒之然后調(diào)試 |
| Shift + F10 | Run | 運(yùn)行 |
| Shift + F9 | Debug | 調(diào)試 |
| Ctrl + Shift + F10 | Run context configuration from editor | ? |
Debugging 調(diào)試
| F8 | Step over | 跳過函數(shù)執(zhí)行 |
| F7 | Step into | 單步執(zhí)行 |
| Shift + F7 | Smart step into | 智能但不執(zhí)行 |
| Shift + F8 | Step out | 跳出函數(shù)執(zhí)行 |
| Alt + F9 | Run to cursor | 運(yùn)行到光標(biāo)處 |
| Alt + F8 | Evaluate expression | ? |
| F9 | Resume program | 繼續(xù)執(zhí)行 |
| Ctrl + F8 | Toggle breakpoint | 切換斷點(diǎn) |
| Ctrl + Shift + F8 | View breakpoints | 查看斷點(diǎn) |
Navigation 導(dǎo)航
| Ctrl + N | Go to class | 查找/跳到類 |
| Ctrl + Shift + N | Go to file | 查找文件 |
| Ctrl + Alt + Shift + N | Go to symbol | 查找符號 |
| Alt + Right/Left | Go to next/previous editor tab | ? |
| F12 | Go back to previous tool window | ? |
| Esc | Go to editor (from tool window) | ? |
| Shift + Esc | Hide active or last active window | ? |
| Ctrl + Shift + F4 | Close active run/messages/find/... tab | ? |
| Ctrl + G | Go to line | ? |
| Ctrl + E? | Recent files popup? ?? | 最近打開的文件 |
| Ctrl + Alt + Left/Right | Navigate back/forward | 回到上一步/下一步編輯的地方 |
| Ctrl + Shift + Backspace | Navigate to last edit location | 回到最后編輯的地方 |
| Alt + F1 | Select current file or symbol in any view | 在任意視圖中選中當(dāng)前文件或者符號 |
| Ctrl + B or Ctrl + Click | Go to declaration | 到變量定義處 |
| Ctrl + Alt + B | Go to implementation(s) | 到方法的實(shí)現(xiàn)處 |
| Ctrl + Shift + I | Open quick definition lookup | 打開定義快速查找 |
| Ctrl + Shift + B | Go to type declaration | 跳轉(zhuǎn)到方法定義處 |
| Ctrl + U | Go to super-method/super-class | 跳轉(zhuǎn)到父方法/父類 |
| Alt + Up/Down | Go to previous/next method | 跳轉(zhuǎn)到上一個/下一個方法 |
| Ctrl + ] / [ | Move to code block end/start | 跳到代碼段的開始/結(jié)尾 |
| Ctrl + F12 | File structure popup | 彈出文件結(jié)構(gòu)視圖 |
| Ctrl + H | Type hierarchy | 類型的層次結(jié)構(gòu)? |
| Ctrl + Shift + H | Method hierarchy | 方法的層次結(jié)構(gòu)? |
| Ctrl + Alt + H | Call hierarchy | 調(diào)用的層次結(jié)構(gòu)(查找方法/符號的調(diào)用方) |
| F2 / Shift + F2 | Next/previous highlighted error | 下一個(上一個)高亮的錯誤 |
| F4 / Ctrl + Enter | Edit source / View source | 編輯/查看文件源碼 |
| Alt + Home | Show navigation bar | 顯示導(dǎo)航欄 |
| F11 | Toggle bookmark | 增加書簽 |
| Ctrl + F11 | Toggle bookmark with mnemonic | 增加帶符號的書簽 |
| Ctrl + #[0-9] | Go to numbered bookmark | 跳到標(biāo)記數(shù)字的書簽 |
| Shift + F11 | Show bookmarks | 顯示書簽 |
Refactoring 代碼重構(gòu)
| F5 | Copy | 復(fù)制 |
| F6 | Move | 移動 |
| Alt + Delete | Safe Delete | 安全刪除 |
| Shift + F6 | Rename | 重命名變量/方法名 |
| Ctrl + F6 | Change Signature | 改變 |
| Ctrl + Alt + N | Inline | ? |
| Ctrl + Alt + M | Extract Method | ? |
| Ctrl + Alt + V | Extract Variable | ? |
| Ctrl + Alt + F | Extract Field | ? |
| Ctrl + Alt + C | Extract Constant | ? |
| Ctrl + Alt + P | Extract Parameter | ? |
VCS/Local History 版本管理/本地歷史
| Ctrl + K | Commit project to VCS | ? |
| Ctrl + T | Update project from VCS | ? |
| Alt + Shift + C | View recent changes | 查看最近更改的內(nèi)容 |
| Alt + BackQuote (`) | ‘VCS’?quick popup | ? |
Live Templates 動態(tài)模板
| Ctrl + Alt + J | Surround with Live Template | 環(huán)繞的動態(tài)模板 |
| Ctrl + J | Insert Live Template | 插入動態(tài)模板 |
| iter | Iteration according to Java SDK 1.5 style | ? |
| inst? | Check object type with instanceof and downcast it | ? |
| itco | Iterate elements of java.util.Collection | ? |
| itit? | Iterate elements of java.util.Iterator | ? |
| itli | Iterate elements of java.util.List | ? |
| psf | public static final | ? |
| thr | throw new | ? |
General 通用
| Alt + #[0-9]? | Open corresponding tool window | 打開相應(yīng)的工具窗口 |
| Ctrl + S? | Save all | 保存 |
| Ctrl + Alt + Y | Synchronize | 同步 |
| Ctrl + Shift + F12 | Toggle maximizing editor | 最大化編輯窗口 |
| Alt + Shift + F | Add to Favorites | 添加到Favorites |
| Alt + Shift + I | Inspect current file with current profile | ? |
| Ctrl + BackQuote (`)? | Quick switch current scheme | ? |
| Ctrl + Alt + S | Open Settings dialog | 打開設(shè)置窗口 |
| ?Ctrl + Alt + Shift +?S | Open Project Structure dialog | 打開項(xiàng)目結(jié)構(gòu)窗口 |
| Ctrl + Shift + A? | Find Action | 查找快捷鍵 |
| Ctrl + Tab | Switch between tabs and tool window | 在選項(xiàng)卡和工具窗口之間切換 |
與Ubuntu系統(tǒng)快捷鍵沖突的地方
Here’s a list of tweaks you need to make with default system key bindings so that they won’t interfere with IntelliJ IDEA actions (listed in brackets).
- Disable the Shade window action, assigned to?Ctrl?+?Alt?+?S?(Settings dialog)
- Change or disable the Lock Screen action, assigned to?Ctrl?+?Alt?+?L?(Reformat code)
- Change or disable the Launch terminal action, assigned to?Ctrl?+?Alt?+?T?(Surround with)
- Change or disable the Switch to workspace action, assigned to?Сtrl?+?Alt?+?Arrows?(Navigation)
- Disable the Move window action, assigned to?Alt?+?F7?(Find usages)
- Change or disable the Resize window action, assigned to?Alt?+?F8?(Evaluate expression)
原文地址: http://blog.csdn.net/aaa111/article/details/43791481
總結(jié)
以上是生活随笔為你收集整理的IDEA 快捷键 Android Studio快捷键的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 如何在Eclipse和Android S
- 下一篇: Android 中 Registrant