idea快捷键
File
| |
|---|
| Ctrl+Alt+s | Settings |
| Ctrl+Alt+Shift+s | Project Structure |
Edit
| |
|---|
| Ctrl+Shift+v | Paste from History |
| Ctrl+w | Extend Selection |
| Ctrl+Shift+w | Shrink Selection |
| Ctrl+Shift+x | Toggle Case |
| Alt+f | Replace |
| Ctrl+h | Find in Path |
| Ctrl+Alt+Shift+q | Replaced in Path |
| Ctrl+g | Find Usages |
View
| |
|---|
| Alt+num | Tools Windows |
| Ctrl+e | Recent Files |
| Ctrl+Shift+e | Recent Locations |
| Ctrl+p | Parameter Info |
Navigate
| |
|---|
| Ctrl+Shift+r | Files... |
| Ctrl+Shift+t | class... |
| Ctrl+Alt+Shift+n | symbol... |
| Alt+ ->/<- | Back/Forward |
| Ctrl+q | Last Edit Postion |
| Ctrl+Shift+q | Next Edit Postion |
| Ctrl+Shift+num | Make Bookmarks |
| Ctrl+t | implementation |
| Ctrl+f3 | File structure |
| f4 | Type Hierarchy |
Code
| |
|---|
| Ctrl + num+/num- | Expand/Collapse |
| Ctrl +Shift+ num+/num- | Expand all /Collapse all |
| Ctrl+Shift+e | Recent Locations |
| Ctrl+Alt+o | Optimize Imports |
Refactor
Ctrl+Shift+Alt+T,叫做Refactor This
1.Shift+Alt+r 改变量名
2.抽取 extract
1)抽取变量Alt+Shift+l
2)抽取常量clrl+Alt+c
3)抽取全局变量clrl+Alt+f
4)抽取参数clrl+Alt+p
5)抽取函数Alt+Shift+m 和 Alt+enter一样
Run
Ctrl +r 定位到光标处
Ctrl+u 计算表达式
F7 跳出函数
断点设置条件
Other
Ctrl+shfit+v 剪贴板(多次复制)
Alt+anter(重构优化)
Ctrl+Shift+Enter就能自动补全末尾的字符
Alt+insert generate
Ctrl+Shift+a find action可以根据输入英文操作查询快捷键操作
Ctrl+o 文件内部结构图,F4类继承关系,Ctrl+Alt+u 看类外部结构图或maven依赖结构
Ctrl +Shift+o 翻译
Ctrl+Alt+T 把选中的代码放在 TRY{} IF{} ELSE{} 里
postfix
- 100.fori
- .if if(expr)
- .else if(!expr)
- .return
- .nn if(expr!=null
- .null
- .var 新建变量
100.fori ; sout;user.return,user.nn