窗口跳轉(zhuǎn)(項目) ctrl+alt+[ window->next project window
窗口跳轉(zhuǎn)(項目) ctrl+alt+] window->previous project window
查找最近文件 ctrl+E
查找最近修改的文件 ctrl+shift+E
跳轉(zhuǎn)到上一次修改的地方 ctrl+shift+backspace navigate->last edit location
跳轉(zhuǎn)到下一次修改的地方 navigate->next edit location
跳轉(zhuǎn)到上一個瀏覽的地方 ctrl+shift+左箭頭 navigate->back
跳轉(zhuǎn)到下一個瀏覽的地方 ctrl+shift+右箭頭 navigate->forward
設(shè)置書簽 ctrl+F11
跳轉(zhuǎn)書簽 ctrl+數(shù)字鍵
打開最愛 alt+2
收藏最愛(收藏類,函數(shù)) alt+shift+F
從代碼編輯區(qū)跳轉(zhuǎn)到文件區(qū)alt+1
從文件區(qū)跳轉(zhuǎn)到代碼編輯區(qū)esc
精確搜索類 ctrl+N navigate->class
精確搜索(包含jar中的類) ctrl+N->ctrl+N navigate->class
精確搜索文件 ctrl+shift+N navigate->file
精確搜索函數(shù) ctrl+shift+alt+N navigate->symbol
精確搜索字符串 ctrl+shift+F edit->find->find in path...
批量列操作 ctrl+alt+shift+J 選中文本 edit->find->select all Occurrences
跳轉(zhuǎn)至單詞開頭 ctrl+左箭頭
跳轉(zhuǎn)至單詞結(jié)尾 ctrl+右箭頭
代碼格式化 ctrl+alt+L
導包
移除無用的包 ctrl+alt+O
復制行 ctrl+D
智能代碼補全 ctrl+shift+space
斷點調(diào)試 F7 F8 F9
settings
File | Project Structure | Project 選擇 project SDK 1.8 選擇 project language level 8 配置SDK
File | Settings | Build, Execution, Deployment | Build Tools | Maven 設(shè)置maven_home和settings.xml 配置maven
File | other settings | default settings | maven 修改maven默認配置
File | other settings | default Project Structure | Project 修改SDK默認配置
File | Settings | Editor | File Encodings 設(shè)置UTF-8 設(shè)置編碼格式
File | Settings | Build, Execution, Deployment | Compiler | Annotation Processors 設(shè)置Enable 配置啟用注解處理器 lombok需要開啟
File | Settings | Build, Execution, Deployment | Compiler | build project automatically & compile independent module in parallel 自動編譯&并行編譯
File | Settings | Appearance & Behavior | Appearance 主題
File | Settings | Editor | General | change font size with ctrl + mouse wheel 鼠標滾輪修改字體大小
File | Settings | Editor | General | show quick doc on mouse move 鼠標懸停提示
File | Settings | Editor | General | Auto Import | add unambiguous imports on the fly 勾選自動導包
File | Settings | Editor | General | Auto Import | aoptimize imports on the fly 勾選優(yōu)化導包
File | Settings | Editor | General | Appearance | show line numbers 顯示行號
File | Settings | Editor | General | Appearance | show method separators 顯示方法分隔符
File | Settings | Editor | General | Code Completion | case sensitive completion 改為none智能提示不區(qū)分大小寫
File | Settings | Editor | General | Editor Tabs | show tabs in single row 多行顯示tabs
File | Settings | Editor | Font 字體和行間距
File | Settings | Editor | Color Scheme | Color Scheme Font 單獨設(shè)置主題字體
File | Settings | Editor | Color Scheme | Console Font 單獨設(shè)置控制臺字體
File | Settings | Editor | Color Scheme | Language Defaults |comments 設(shè)置注釋字體
File | Settings | Editor | Code Style | Java | import 導包的編碼風格
File | Settings | Editor | Code Style | Java | Tabs and Indents 不要勾選Use tab character,tab鍵會轉(zhuǎn)成4個空格
設(shè)置文件頭 File | Settings | Editor | File and Code Templates | include -> file header
/**
* @description:
* @author: ${USER}
* @date: ${YEAR}-${MONTH}-${DAY} ${TIME}
*/
省電模式 file -> power save mode
水平顯示&垂直顯示 java文件右鍵-> split
設(shè)置快捷鍵 File | Settings | Keymap 選中 右鍵 Add keyboard shortcut
自定義模板 File | Settings | Editor | Live Templates
不可編輯模板 File | Settings | Editor | General | Postfix Completion
for 循環(huán)
sout 輸出
field 屬性
return 返回值
nn 不為空
動作查找 ctrl+shift+A help->find Action