当前位置:网站首页>IDEA快捷键大全
IDEA快捷键大全
2022-07-07 08:44:00 【aabond】
一、IDEA常用快捷键
可通过IDEA菜单栏 Help -> Keymap Reference查看

二、查看快捷键功能和修改

三、常用快捷键
以下是我在工作和学习中会用到的快捷键
注:以下快捷键后加*表示十分常用
3.1 ALT
| 快捷键 | 含义 |
|---|---|
| ALT + 7 | 显示当前类结构 |
| ALT + Delete | 安全删除 |
| ALT + Enter* | 显示智能操作列表 |
| ALT + F1 | 选择当前类在多种视图中择一显示 |
| ALT + F7 | 查看类/方法/属性/参数等的使用情况 |
| ALT + Insert* | 生成get/set/toString等代码 |
| ALT + Q | 显示上下文信息,类文件中显示类名信息 |
3.2 ALT + SHIFT
| 快捷键 | 含义 |
|---|---|
| ALT + SHIFT + ↑* | 向上移动选中代码 |
| ALT + SHIFT + ↓* | 向下移动选中代码 |
| ALT + SHIFT + F | 添加到Favorites |
3.3 CTRL
| 快捷键 | 含义 |
|---|---|
| CTRL + A* | 全选 |
| CTRL + B / CTRL + LEFT* | 跳转到类/方法/属性定义 |
| CTRL + C* | 复制 |
| CTRL + D | 复制当前行或选中的块 |
| CTRL + E* | 显示最近打开的文件列表 |
| CTRL + F* | 当前页面查找 |
| CTRL + G | 当前页面跳转到某一行 |
| CTRL + H | 显示当前光标选择类继承关系 |
| CTRL + I | 实现父类或接口的方法 |
| CTRL + J | 选择代码模板插入 |
| CTRL + K | 提交git |
| CTRL + L | 搜索后,查找下一个 |
| CTRL + M | 当前鼠标所在行滚动到页面中心 |
| CTRL + N* | 查找类 |
| CTRL + O* | 选择父类或接口中方法去实现(比Ctrl + I更广,这个包含祖先类) |
| CTRL + P | 显示方法的参数信息 |
| CTRL + Q | 显示方法的文档信息 |
| CTRL + R | 当前页面替换 |
| CTRL + S | 保存 |
| CTRL + T | git更新项目 |
| CTRL + U | 跳转到当前类的父类或接口 |
| CTRL + V* | 粘贴 |
| CTRL + W | 拓展鼠标选择 |
| CTRL + X* | 剪切 |
| CTRL + Y | 删除行 |
| CTRL + Z* | 撤销 |
| CTRL + BackSpace | 删除光标选中单词前面部分 |
| CTRL + Delete | 删除光标选中单词后面部分 |
| CTRL + End | 跳转到文件尾部 |
| CTRL + Enter | 分割行,将光标后面部分下移为一行 |
| CTRL + F1 | 显示错误或警告的具体信息 |
| CTRL + F2 | 停止运行的程序 |
| CTRL + F4 | 关闭当前编辑文件 |
| CTRL + F6 | 修改方法签名 |
| CTRL + F7 | 光标所在方法、属性、参数,从当前文件声明位置跳转到使用位置 |
| CTRL + F8 | 打断点 |
| CTRL + F9 | 编译 |
| CTRL + F11 | 使用bookmark功能,将光标所在代码行标记为书签 |
| CTRL + F12 | 列出类中所有方法和属性 |
| CTRL + HOME | 跳转到文件头部 |
| CTRL + TAB | 跳转到最近打开的文件 |
| CTRL + [ | 移动光标到当前代码块的{ |
| CTRL + ] | 移动光标到当前代码块的} |
| CTRL + /* | 注释当前代码行,如果已注释则取消 |
3.4 CTRL + SHIFT
| 快捷键 | 含义 |
|---|---|
| CTRL + SHIFT + Enter | 为if语句添加大括号 |
| CTRL + SHIFT + F* | 强大的搜索 |
| CTRL + SHIFT + F7 | 高亮光标选择对象使用 |
| CTRL + SHIFT + I | 显示方法/属性等的定义 |
| CTRL + SHIFT + N | 查找文件 |
| CTRL + SHIFT + T* | 生成测试方法 |
| CTRL + SHIFT + V | 从当前buffer中黏贴 |
| CTRL + SHIFT + /* | 注释当前代码块,如果已注释则取消 |
3.5 CTRL + ALT
| 快捷键 | 含义 |
|---|---|
| CTRL + ALT + C* | 将属性修改为常量 |
| CTRL + ALT + I | Indent光标所在行 |
| CTRL + ALT + Ins | 新建文件,类等 |
| CTRL + ALT + L* | 格式化代码 |
| CTRL + ALT + O* | 优化,移除无用import |
| CTRL + ALT + S | 打开设置 |
| CTRL + ALT + T* | 选择模板生成代码 |
四、其它
- 取消自动import *, 在setting->Editor->Code Style->Java->Imports 修改
- 查看代码每行提交人和时间,在行左侧右键点击,选择Annotate
五、参考
边栏推荐
- Deeply analyze the main contents of erc-4907 agreement and think about the significance of this agreement to NFT market liquidity!
- ThreadLocal会用可不够
- How much review time does it usually take to take the intermediate soft exam?
- 深入理解Apache Hudi异步索引机制
- [daiy5] jz77 print binary tree in zigzag order
- 【STM32】实战3.1—用STM32与TB6600驱动器驱动42步进电机(一)
- 單調性約束與反單調性約束的區別 monotonicity and anti-monotonicity constraint
- CAS机制
- 2021 summary and 2022 outlook
- 小程序跳转H5,配置业务域名经验教程
猜你喜欢

单调性约束与反单调性约束的区别 monotonicity and anti-monotonicity constraint

ArrayList thread insecurity and Solutions

I plan to take part in security work. How about information security engineers and how to prepare for the soft exam?

南航 PA3.1

Prototype and prototype chain

Basic introduction of yarn and job submission process

How to successfully pass the senior system architecture designer in the second half of the year?

【推荐系统 01】Rechub

Pre knowledge reserve of TS type gymnastics to become an excellent TS gymnastics master

Simple and easy to modify spring frame components
随机推荐
ArrayList线程不安全和解决方案
软考中级有用吗??
深入理解Apache Hudi异步索引机制
ThreadLocal会用可不够
What is an intermediate network engineer? What is the main test and what is the use?
Socket communication principle and Practice
2021 summary and 2022 outlook
[daiy5] jz77 print binary tree in zigzag order
[recommendation system 02] deepfm, youtubednn, DSSM, MMOE
How to play video on unityui
[dai6] mirror image of JZ27 binary tree
Some superficial understanding of word2vec
CAS mechanism
Installation and configuration of slurm resource management and job scheduling system
Basic introduction of yarn and job submission process
Pre knowledge reserve of TS type gymnastics to become an excellent TS gymnastics master
打算参加安全方面工作,信息安全工程师怎么样,软考考试需要怎么准备?
Elegant controller layer code
[detailed explanation of Huawei machine test] tall and short people queue up
施努卡:机器视觉定位技术 机器视觉定位原理