mac :
-
Shift command p
: 出來搜索應(yīng)用(默認(rèn)的是command 空格鍵
)
IntelliJ IDEA:
Command shift w
: 在IDEA出來誰寫的代碼command ,
: IDEA 出來search 框alt f1 ---> alt 1
: IDEA 回到該文件在項(xiàng)目中的位置shift command T
: 項(xiàng)目中的Controller ——》 到對應(yīng)的測試文件截歉,如果沒有可以支持選項(xiàng)去創(chuàng)建一個(gè)(也可以反過來 Test ----》 Controller)Command f6
+command n
: 批量的給函數(shù)加參數(shù)Option 上鍵
: 快速選中一個(gè)單詞shift command u
:先 選中 然后大小寫轉(zhuǎn)換Double shift
===Shift command A
,Shift command F
,Shift command O
cmmand G
: 選中同一個(gè)char胖腾、chars(但是我的不起作用啊)Diff代碼,提交代碼:
command 左下角數(shù)字
command d
: 進(jìn)入diff
f7
: 一個(gè)diff一個(gè)diff過
shift f7
:返回上一個(gè)diff處
alt command z
: git checkout .
comand k
esc
: 退出diff框alt f7
: 查看這個(gè)方法的調(diào)用處command r
: 單詞替換瘪松,可以不把單詞選中
13.command shift f7
:選中所有的使用當(dāng)前變量的位置
快捷鍵:
-
ctrl alt o
: 清理代碼中沒有用到的import部分 -
command f6
:給函數(shù)添加參數(shù) -
Alt command c
: 選中單詞抽取常量胸嘁,會在當(dāng)前文件中抽取一個(gè)常量
然后f6
:可以選擇將常量放在哪個(gè)文件中去 -
Command shift m
:選中抽取函數(shù)
18 .Command shift f8
: 調(diào)出斷點(diǎn)新窗口 -
Command f12
: 進(jìn)入到方法的源碼類中,然后快捷鍵查看其方法有哪些 -
Command shift enter
:自動給行末尾加上分號
- 快捷鍵:
ctrl alt o
: 清理多余import
command f6
:所有函數(shù)參數(shù)
Alt command c
: 選中抽取變量凉逛,會在本文件中抽取一個(gè)常量
f6
:選擇常量放在哪個(gè)文件中去
Command shift m
: 選中抽取函數(shù)
Command shift f8
: 調(diào)出斷點(diǎn)的位置
Command f12
: 進(jìn)入到方法的類中性宏,然后快捷鍵查看其方法有哪些
Command shift enter
:自動加上分號
Command L
: 跳到指定行號處
Alt command D
: 桌面菜單欄的顯示、隱藏
Alt command b
: 書簽展示
- item2 分屏:
* `ctrl D`
* `Ctrl shift d `
`Command left | right `: switch terminal
`Shift Command left | right` : move terminal tab
IDEA快捷鍵:
Alt enter = ctrl option o (***) 自動優(yōu)化本文件的 import , don’t care point are where
Command alt B : 看這個(gè)類或者方法的實(shí)現(xiàn)處
斷點(diǎn)調(diào)試:
Command f8 : 打斷點(diǎn)
F7 : 進(jìn)入方法內(nèi)部
F8:一行一行代碼的走
F9:退出debug
F9 F9 enter: 重新開始啟動debug 模式
IDEA 顯示快捷鍵 plugin : presentation assistant
牛逼的IntelliJ IDEA快捷鍵---------不容錯(cuò)過
MySQL:
select * from table limit 1 \G
: 格式化顯示表的一條數(shù)據(jù)
show create table reservations
: 查看這個(gè)表創(chuàng)建時(shí)的注釋