IDEA 常用快捷键
快捷键 | 说明 |
---|---|
Ctrl + D | 复制光标所在行 |
Ctrl + F | 在当前文件进行文本查找 |
Ctrl + R | 在当前文件进行文本替换 |
Ctrl + Z | 撤消 |
Ctrl + / | 注释光标所在行代码 |
Ctrl + Alt + F | 根据输入内容查找整个项目 |
Ctrl + Alt + L | 格式化代码 |
Ctrl + Alt + O | 优化导入的类 |
Ctrl + Alt + Z | 取消撤消 |
Ctrl + Alt + / | 代码块注释 |
F2 | 跳转到下一个高度错误 |
IDEA 自动生成 serialVersionUID
Setting
--> Inspections
--> Serialization issues
--> 勾选Serializable class without ’serialVersionUID’