alt = option
ctrl = control
control + enter 類初始化
command + o 打開類
command + e 打開最近打開的文件
control + table 打開上次打開的文件
command + delete 刪除行
command + x 剪切行
command + d 復(fù)制一行
control + t 重構(gòu)菜單
option + 上/下 縮小或放大選區(qū)
command + 左/右 移動(dòng)鼠標(biāo)光標(biāo)到最左邊和最右邊
command + shift + 上/下 移動(dòng)行或方法上移或下移
option + enter 構(gòu)造函數(shù)參數(shù)提取到屬性,自動(dòng)創(chuàng)建類,提示信息,錯(cuò)誤引入修訂
Command shift + o 打開文件
command + shift + t 打開單元測(cè)試
command + option + enter 在上面增加一行
COMmand + shift + enter 在下面增加一行
control + option + 0 優(yōu)化import,刪除無用引入
command + shift + a 杳找action
command + option + l 格式化代碼
option + control + r 調(diào)出運(yùn)行,列出那些可以執(zhí)行
Command + option + p 抽取參數(shù)
Command + option + v 抽取變量
Command + option + f 抽取字段
Command + option + c 抽取常量
Command + option + m 抽取方法
fn+shift+f6 重命名
command + option + n 內(nèi)聯(lián)將調(diào)用替換成實(shí)現(xiàn) 將一個(gè)變量定義抽取成一個(gè)變量直接賦值
invert if condition 條件反轉(zhuǎn) 內(nèi)容也反轉(zhuǎn) 如if大于變小于號(hào)
Live templates 內(nèi)置 偏好設(shè)置E
$NAME$ 記得要 點(diǎn)define
目定義live tem temp lates 替換 偏好設(shè)置里有.. eg: sout Tori 1ter
向后聲明 eg: "aa".var, "sdf'" . fori
智能補(bǔ)全
if(str == null) {
return "abc" //command +shift +enter 補(bǔ)分號(hào)
double shift查找文件方
command + n彈出生 成代碼(get set方法或者 構(gòu)造方法之類)
<u>實(shí)現(xiàn)ctrl+ 滾輪變大字體:</u>
setting->editor->General->勾選change font size.....
設(shè)置自動(dòng)導(dǎo)包:
setting->editor->general->auto import->insert imports on paste All
顯示方法分割符號(hào)
setting->editor->general->appearance->show method separators
取消單行顯示文件 文件多時(shí)可以一起顯示
setting->editor->general->Editor Tabs->show tabs in one row
修改注釋的顏色
設(shè)置導(dǎo)包,超過幾個(gè)包自動(dòng)轉(zhuǎn)為* 如5歌以上util 轉(zhuǎn)為*
設(shè)置文件新建頭部標(biāo)簽簽名:
設(shè)置當(dāng)前項(xiàng)目編碼格式的問題:

image-20201015184540827
設(shè)置自動(dòng)自動(dòng)編譯
https://tva1.sinaimg.cn/large/007S8ZIlgy1gjq7nggkbpj31lw0t4n6n.jpg)
若出現(xiàn)無代碼提示的顯示功能時(shí),可更改
快捷輸入:
Sout 輸出
soutp
soutm
soutv
main
psvm main方法
循環(huán)輸出: iter. fori itar
list.for 正對(duì)list集合的增強(qiáng)for循環(huán)
list.forr 倒敘遍歷
ifn 判斷l(xiāng)ist是不是null
inn 判斷l(xiāng)ist是不是null
psvf. p rivate static final
idea添加本地tomcat運(yùn)行測(cè)試
idea中添加數(shù)據(jù)庫的管理
上傳當(dāng)前項(xiàng)目到gi t