Encyclopedia of Intellij IDEA shortcut keys (super detailed)

foreword

This blogger will use CSDN to record the experience and knowledge gained and learned on the road of software development and learning. Interested friends can follow the blogger!
Maybe a person walking alone can go very fast, but a group of people walking together can go further! Let us learn from each other on the road of growth, welcome to pay attention!


Follow and private message bloggers, you can get JDK1.8 Chinese version!


Intellij IDEA Shortcuts Official Documentation

1. Common shortcut keys

Common shortcut keys illustrate
Ctrl+E A list of recently edited files can be displayed
Shift+Click file can be closed
Ctrl+[ or ] You can skip to the beginning and end of curly braces
Ctrl+Shift+Backspace You can jump to the last edited place
Ctrl+F12 Can display the structure of the current file
Ctrl+F7 You can query the reference of the current element in the current file, and then press F3 to select
Ctrl+N Classes can be opened quickly
Ctrl+Shift+N Can open files quickly
Alt + Q You can see the declaration of the current method
Ctrl+W You can choose words followed by statements followed by lines followed by functions
Alt + F1 The element being edited can be positioned in each panel
Ctrl+P parameter information can be displayed
Ctrl+Shift+Insert Clipboard content can be selected and inserted
Alt+Insert Constructor/Getter/Setter, etc. can be generated
Ctrl+Alt+V Variables can be introduced. For example, assign the SQL in parentheses to a variable
Ctrl+Alt+T You can wrap code in a block, such as try/catch
Alt+Up / Down Quickly move between methods

2. Query shortcut keys

query shortcut illustrate
CTRL+N find class
CTRL+SHIFT+N find files
CTRL+SHIFT+ALT+N Find a method or variable in a class
CIRL+B find the source of the variable
CTRL+ALT+B find all subclasses
CTRL+SHIFT+B find variable class
CTRL+G positioning line
CTRL+F Find text in the current window
CTRL+SHIFT+F Find text in a specified window
CTRL+R Replace text in the current window
CTRL+SHIFT+R Replace text in specified window
ALT+SHIFT+C Find modified files
CTRL+E recently opened files
F3 Drill down to find where the keyword appears
SHIFT+F3 向上一个关键字出现位置
F4 查找变量来源
CTRL+ALT+F7 选中的字符查找工程出现的地方
CTRL+SHIFT+O 弹出显示查找内容

三、代码快捷键

代码快捷键 说明
ALT+回车 导入包,自动修正
CTRL+ALT+L 格式化代码
CTRL+ALT+I 自动缩进
CTRL+ALT+O 优化导入的类和包
ALT+INSERT 生成代码(如GET,SET方法,构造函数等)
CTRL+E 最近更改的代码
CTRL+SHIFT+SPACE 自动补全代码
CTRL+空格 代码提示
CTRL+ALT+SPACE 类名或接口名提示
CTRL+P 方法参数提示
CTRL+J 自动代码
CTRL+ALT+T 把选中的代码放在 TRY{} IF{} ELSE{} 里

四、复制快捷键

复制快捷键 说明
CTRL+D 复制行
CTRL+X 剪切,删除行

五、其他快捷键

其他快捷键 说明
CIRL+U 大小写切换
CTRL+Z 倒退
CTRL+SHIFT+Z 向前
CTRL+ALT+F12 资源管理器打开文件夹
ALT+F1 查找文件所在目录位置
SHIFT+ALT+INSERT 竖编辑模式
CTRL+/ 注释//
CTRL+SHIFT+/ 注释//
CTRL+W 选中代码,连续按会有其他效果
CTRL+B 快速打开光标处的类或方法
ALT+ ←/→ 切换代码视图
CTRL+ALT ←/→ 返回上次编辑的位置
ALT+ ↑/↓ 在方法间快速移动定位
SHIFT+F6 重构-重命名
CTRL+H 显示类结构图
CTRL+Q 显示注释文档
ALT+1 快速打开或隐藏工程面板
CTRL+SHIFT+UP/DOWN 代码向上/下移动。
CTRL+UP/DOWN 光标跳转到第一行或最后一行下
ESC 光标返回编辑框
SHIFT+ESC 光标返回编辑框,关闭无用的窗口
F1 帮助
CTRL+F4 关闭文件

Guess you like

Origin blog.csdn.net/weixin_52533007/article/details/123726550