找到了一些資料先更新上來,還沒好好整理
快捷鍵 | 功能 |
---|---|
alt + insert | 快速new |
alt + 數(shù)字 | 打開關(guān)閉常用標簽 |
ctrl + alt + Enter | 向上插入新行 |
shift + Enter | 向下插入新行 |
alt + `(1左邊那個) | VCS Operations |
執(zhí)行(run) | alt+r |
提示補全 (Class Name Completion) | alt+/ |
單行注釋 | ctrl + / |
多行注釋 | ctrl + shift + / |
向下復制一行 (Duplicate Lines) | ctrl+alt+down |
刪除一行或選中行 (delete line) | ctrl+d |
向下移動行(move statement down) | alt+down |
向上移動行(move statement up) | alt+up |
向下開始新的一行(start new line) | shift+enter |
0 向上開始新的一行 (Start New Line before current) | ctrl+shift+enter |
如何查看源碼 (class) | ctrl + 選中指定的結(jié)構(gòu) 或 ctrl + shift + t |
萬能解錯/生成返回值變量 | alt + enter |
退回到前一個編輯的頁面 (back) | alt + left |
進入到下一個編輯的頁面(針對于上條) (forward) | alt + right |
查看繼承關(guān)系(type hierarchy) | F |
格式化代碼(reformat code) | ctrl+shift+F |
提示方法參數(shù)類型(Parameter Info) | ctrl+alt+/ |
復制代碼 | ctrl + c |
撤銷 | ctrl + z |
0 反撤銷 | ctrl + y |
剪切 | ctrl + x |
粘貼 | ctrl + v |
保存 | ctrl + s |
全選 | ctrl + a |
選中數(shù)行,整體往后移動 | tab |
選中數(shù)行,整體往前移動 | shift + tab |
查看類的結(jié)構(gòu):類似于 eclipse 的 outline | ctrl+o |
重構(gòu):修改變量名與方法名(rename) | alt+shift+r |
大寫轉(zhuǎn)小寫/小寫轉(zhuǎn)大寫(toggle case) | ctrl+shift+y |
0 生成構(gòu)造器/get/set/toString | alt +shift + s |
查看文檔說明(quick documentation) | F |
收起所有的方法(collapse all) | alt + shift + c |
打開所有方法(expand all) | alt+shift+x |
打開代碼所在硬盤文件夾(show in explorer) | ctrl+shift+x |
生成 try-catch 等(surround with) | alt+shift+z |
局部變量抽取為成員變量(introduce field) | alt+shift+f |
查找/替換(當前) | ctrl+f |
查找(全局) | ctrl+h |
查找文件 | double Shift |
0 查看類的繼承結(jié)構(gòu)圖(Show UML Diagram) | ctrl + shift + u |
查看方法的多層重寫結(jié)構(gòu)(method hierarchy) | ctrl+alt+h |
添加到收藏(add to favorites) | ctrl+alt+f |
抽取方法(Extract Method) | alt+shift+m |
打開最近修改的文件(Recently Files) | ctrl+E |
關(guān)閉當前打開的代碼欄(close) | ctrl + w |
關(guān)閉打開的所有代碼欄(close all) | ctrl + shift + w |
快速搜索類中的錯誤(next highlighted error) | ctrl + shift + q |
選擇要粘貼的內(nèi)容(Show in Explorer) | ctrl+shift+v |
查找方法在哪里被調(diào)用(Call Hierarchy) | ctrl+shift+h |
F11 增刪bookmarks
Shift F11