#IDEA MacOS 全局查找快捷鍵
shift + Command + F
#當前文件查找
command + f
#當前文件替換
command + r
# 全局類名稱搜索
shift + shift (和window版本的eclipse快捷鍵一樣,沒有發生變化)
#複製方法的相對路徑
shift + option + command + c
#方法在磁盤上的絕對路徑
shift + command + c
#移動代碼行
方式一:shift + command + ⬆️ 或者 ⬇️
方式二:shift + option + ⬆️ 或者 ⬇️
#自動補全行尾結束符號
#光標在代碼中間,將光標移動到行尾並且自動添加行尾結束符號;
shift + command + return (這裏不會進行換行操作,eclipse 上面會進行換行操作)
#代碼美化
option + command + L
# 刪除整行
commond + delete
#單行註釋
commond + /
#多行註釋
control + shift + /
或
option + commond + /
#返回上一次光標所在位置
option + commond + ⬅️ 或 ➡️
或者
command + 【 或 】
#移動到單詞頭或者尾
option + ⬅️或➡️
#選中從光標的位置到單詞頭的部分
shift + option + ⬅️
#選中光標的位置大單詞尾的部分
shift + option + ➡️
#包圍代碼塊(if,try,while 等)
option + commond + t
#自動導包
options + return
#刪除沒有使用到的包
control + option + o
#關閉idea 在導航欄打開的其他文件的窗口
option + 點擊當前窗口的❎
#聚焦到項目工具窗口,如果已經聚焦到該窗口,則會最小化該窗口
command + 1
# 查看當前類的繼承關係 UML 圖
option + command + u
#打開需要Override 的方法
control + o
control + i
control + enter 打開 override,get, set ,等
#最小化非當前窗口
option + command + h
#最小化當前窗口
command + m
mac 使用技巧
#移動光標到行首 或 行尾
command + ⬅️ 或 ➡️
#網頁出現不安全的鏈接提示
沒有,仍要訪問按鈕,鼠標點擊頁面後,輸入, thisisunsafe
#終端光標快捷鍵
移到行首:control+a
移到行尾:control+e
向前跳一個字符:control+f
向後跳一個字符:control+b
向前跳一個單詞:option+f
向後跳一個單詞:option+b
刪除光標之後的所有字符:control+k
刪除光標之前的所有字符:control + u
刪除光標之前的一個單詞:control + w