IDEA:项目 模块
基本设置
# 自动导包和导包优化
File | Settings | Editor | General | Auto Import 选择All 复选Add和Optimize
# 提示忽略大小写
File | Settings | Editor | General | Code Completion 不选Match
#maven
File | Settings | Build, Execution, Deployment | Build Tools | Maven
#Lombok &Vue
File | Settings | Plugins
# 外观设置
File | Settings | Appearance & Behavior | Appearance
# 自动补全设置
File | Settings | Keymap Code Completion Base 改成 alt+/
# 编辑区字体设置
File | Settings | Editor | Font
常用快捷键
Tab //补全
Alt + Enter //补全
Alt + / //补全(要修改快捷键)
Ctrl + Alt + S //设置
Ctrl + D //复制一行
Ctrl + X //(未选中代码)删除一行
Ctrl + W //向上选中
Ctrl + F //查找
Ctrl + I //快速实现接口
Ctrl + O //快速重新父类方法
双击Shift //超级查找
Alt + 1 //快速打开项目面板
Alt + insert 插入Getter Seter
Ctrl + Shift + F12 // 编码页面最大小化
Ctrl + Alt + L //格式化代码reformat code
Ctrl+Shift+-:收缩所有代码
Alt+Shift+向下箭头:将行向下移动
Ctrl+Shift+J:将选中的行合并成一行
Ctrl+Shift+U :全部大写,全小写
Ctrl+Shift+F :全局查找字符串
double Shift:全局查找类
Ctrl + F12 :显示该类的全部方法
Ctrl +”+/-”,当前方法展开、折叠
Ctrl+Shift+”+/-”,全部展开、折叠
Ctrl+Alt+左箭头 返回上次编辑的地方
SHIFT+F6 重命名文件、方法、属性等(rename)
CTRL+ALT+V 提取当前选择为变量(extract variable)
CTRL+ALT+F 提取当前选择为属性(extract field)
CTRL+ALT+C 提取当前选择为常量(extract constant)
CTRL+ALT+M 提取当前选择为方法(extract method)
CTRL+ALT+P 提取当前选择为方法参数(extract parameter)
CTRL+F6 重构类、方法(change signarture)
CTRL+ALT+T 提取代码块至if、try等结构中(surround with)
CTRL+ALT+N 创建模块文件等(new)
CTRL+SHIFT+T 创建测试用例(test)
Ctrl+Alt+Shift+U Diagrams
常用语法
#实现1-10循环
10.for
#快速返回变量
"zifuchuan".var
().var
#快速遍历
iter
itar
#输出打印
soutv
网友评论