相关问题可能也提及在【Spring问题汇总】文中:
https://blog.youkuaiyun.com/weixin_42915286/article/details/85017091
————————————————————————————
快捷键
——————————————
⌘ -> command
⇧ -> shift
⌥ -> option
⬆ -> 上箭头
⬇ -> 下箭头
⌃ -> Control
——————————————
psvm
JAVA入口方法(main函数)
command + Z
撤回
command + shift + Z
撤销撤回
sout + return
System.out.println;
option + return
import util package
control + return
Generate
Generate包括:Setter&Getter;constructor;toString()…
command + /
多行注释(每行一个//
)(取消注释同操作)
command + shift + /
多行注释(段首位分别一个/*
和*/
)(取消注释同操作)
control + option + N
新建文件/文件夹
激活要查看的文件 : 双击shift
查看文件源码
Choose Declaration
激活要查看的代码 : command + B
查看代码源码
或者command + 鼠标单击
control + H
查看implements了该接口的所有实现类
——————————————
双击:shift
搜索 Search Everywhere(此搜索害人不浅)
command + shift + A
搜索 Action / Option (只搜索IDE和语言配置文件)
command + F
本页面搜索
control + shift + F
全局搜索 Find in Path(最常用!!!!!!!!!)
——————————————
control + return
- Generate
:自动生成构造器
——————————————
command + option + T
:Surround With… try / catch …
——————————————
command + N
:Enter Class Name 输入类名进入类
command + 7
:查看当前类中所有属性&方法
——————————————
——————————————
——————————————
————————————————————————————
IDEA 系统 / 代码配置
——————————————
修改字体
——————————————
怎么在代码中自动提示要引入的包?
——————————————
Project中新建的文件夹不能创建树状结构,而是文件名连在一起
如图:取消勾选 Compact Empty Middle Packages
——————————————
自定义生成IDEA代码中的Diagrams图(依赖关系图)
——————————————
Could not autowire. No beans of ‘xxxx’ type found</