I. Introduction
IDEA provides many shortcut keys. Click File --> Settings --> keymap to enter and see the shortcut keys provided by IDEA. We can also search and customize all shortcut keys. The following are the default shortcut keys in IDEA; the
default idea uses windows mode.
2. Commonly used shortcut keys
快捷键 说明
Alt+/ 代码提示
Ctrl+X 剪切
Ctrl+C 复制
Ctrl+V 粘贴
Ctrl+D 复制行
Ctrl+/ 注释当前行
Ctrl + Shift + / 添加块注释
Ctrl+F 在当前文件或当前界面查找
Ctrl+Shift+F 全局搜索
Ctrl+Shift+C 复制文件路径
Ctrl+Y 删除行
Ctrl+Shift+U 大小写转换
Alt + Shift + Insert 切换列选择模式
Ctrl+Shift+UP 向上移动代码
Ctrl+Shift+Down 向下移动代码
Ctrl+N 查找类,包含java,class以及jar包内的类
Ctrl + Shift +N 查找文件,常用语查找页面等
双击Shift 查找所有
Ctrl + F12 打开文件结构
选中类 Ctrl+Alt+Shift+U 查看类的继承关系图(新开窗口显示)
Ctrl+Alt+U 查看类的继承关系图(弹出窗口显示)
Ctrl+Alt+V 自动补全变量名及类型
Ctrl+H 查看类的继承结构
3. Find and modify shortcut keys
3.1 Query based on shortcut key name
3.2 Query based on shortcut keys
Click the search next to it and the find shortcut search box will pop up. Press the corresponding shortcut key on the keyboard and it will automatically fill in the search bar, and then the corresponding shortcut item will be queried.