1. 經常使用快捷鍵
command + shift + o 根據文件名,快速查詢文件
command + o 根據類名,快速查詢文件
command + alt + b 找到當剪類的全部子類
command + f 查找當前文件
command + r 查找替換
command + shift + f 關鍵字全局查找,更強大的查詢器
command + shift + r 高級替換
command + e 打開最近的文件
alt + shift + c 查找最近修改的文件
command + shift + [ 向左切換tab頁
command + shift + ] 向左切換tab頁
command + shift + +,- 展開或縮起
command + . 摺疊或展開選中的代碼
command + d 複製當前行到下一行
command + / 行級註釋
command + shift + / 塊註釋
command + alt + l 對當前文件進行格式化排版
command + 鼠標點擊 跳到類或方法或變量等聲明處
command + alt + 左方向鍵 向前代碼跳轉
command + alt + 右方向鍵 向後代碼跳轉
command + shift + 上方向鍵 當前行代碼,向上移動一行
command + shift + 下方向鍵 當前行代碼,向下移動一行
command + , 打開偏好設置
command + 數字【參考導航條上view > Tool Windows】
command + control + G 選中全部occurrences
control + G 選擇項一處
control + shift + G 取消選中occurrences
2. 自定義快捷鍵
以修改File Structure爲例:
設置 > Keymap > Main menu > Navigate > File Structure
在File Structure這項上鼠標右鍵,選中Add Keyboard Shortcut,在彈窗上輸入新快捷鍵 command+shift+M,就自定義完成了