首页 > 其他分享 >Idea

Idea

时间:2022-11-22 18:22:28浏览次数:44  
标签:Ctrl shift 代码 ctrl Idea Shift alt

Idea检查自动注入错误问题
Editor->Inspections->Spring->Spring Core->Code->Autowiring for Bean Class->Severty:Warning
shell脚本文件格式错误
Editor->File Encodings->去掉勾选(transparent native-to-ascii conversion)
快捷键
Ctrl + T                             版本控制更新项目
Ctrl + K                             版本控制提交项目

ctrl + alt + t                       选择的代码块提取包围if/try
ctrl + alt + I                       自动缩进
ctrl + shift + L                     格式化
alt + enter                          导包
ctrl + p                             方法参数提示
ctrl + j                             模板方法
ctrl + e                             最近修改代码列表
ctrl + g                             跳转到指定行
F2、Shift + F2                       跳转到下一个、上一个错误

Ctrl + H                             显示当前类的层次结构
Ctrl + O                             选择可重写的方法
alt + insert                         创建类、包、get、set
shift + f6                           重命名
ctrl + shift + u                     转换大小写

Ctrl + Shift + F                     全局查找内容
Ctrl + Shift + R                     全局替换内容
ctrl + n                             全局查找类
ctrl + shift + n                     全局查找文件
ctrl + f                             当前文本查找
ctrl + r                             当前文本替换

Ctrl + Shift + J                     自动将下一行合并到当前行末尾
ctrl + shift + enter、shift + enter  光标移到到下一行并新开一行

psvm、sout                           打印输出(2)
fori、list.for                       for循环(2)
ctrl+z / ctrl+shift+z                取消/撤回取消
ctrl+y、ctrl+d                       复制、删除
ctrl+w、ctrl+shift+w                 选中代码逐步放大、缩小

alt+上下箭头                         在类方法上移动
Ctrl+Shift+上下箭头                  代码向上/下移动

ctrl + / 、ctrl + shift + /         单行/多行注释

alt + 0                             显示提交代码窗口
alt + 1                             显示导航栏
alt + 7                             显示代码结构

标签:Ctrl,shift,代码,ctrl,Idea,Shift,alt
From: https://www.cnblogs.com/rbcd/p/16916049.html

相关文章