1.java字體大小配置
window - preferences-General – Appearance – Colors and fonts – Java– Text Font
2.控制臺字體大小配置
General – Appearance – Colors and fonts – Debug– Console Font
General – Appearance – Colors and fonts – Basic– Text Font ?(常用)
ctrl 加 +號和-號 ? ? 可快速實現(xiàn)放大狈癞,縮小字體操作。
3.內容輔助鍵
eg1: main + alt +/? (實現(xiàn)main方法格式谦屑,內容如下)
public static void main(String[] args) {
}
eg2: sysout + alt + /? (實現(xiàn)內容如下:)
eg3:定義自己的 alt + / ? ()
Windows – perference – Java –Editor – Templates(模板)? - New( 自定義一個mainsys快捷輔助鍵)
將下面代碼寫入pattern窗口,這樣在寫代碼的過程中只要輸入mainsys +alt + /就能快速調出下面內容:
public static void main(String[] args) {
System.out.println();
}
4.常用快捷鍵
ctrl (control) +n ? : 新建文件
ctrl + shift + f ? : ?代碼的格式化
ctrl + shift + o? : ?導包 ? ? ? ?(選中多個對象名一次可導入多個包)
ctrl + shift + / ?: ?多行注釋
ctrl + shift + \ : ?取消多行注釋
ctrl + / ?或 ?\ ?: ?添加或取消多行注釋
?alt +上下鍵 ?:代碼上下移動
?contrl ?+ ?鼠標左鍵 ? ? ? 或 ? ? ?Fn+F3 ? ? ?: ? 查看源碼 ? ?
ctrl + shift + t ? ? ?: ? 查找類
ctrl + ?o ? ?: ? 查找類的具體方法
ctrl + ?1 ? ?: ? 錯誤時或警告時提供建議 ? (自動添加包或修改數據型.....)
ctrl + ?d ? ?: ? ?刪除源碼
ctrl ?+ ?z ? ?: ?恢復前一步驟
alt ? + shift ?+ m ? ?: ? ?抽取方法 ?(相當于 右鍵-Refactor-Extract Method)
alt? + shift? + ?r ? ?: ? ? 改名 ? (當輸出個數較多時使用較爽)
5.提高開發(fā)效率的快捷鍵
Alt + shif+ s ? ? ? (可快速生成get/set方法,空參構造方法憎兽,有參構造方法)