当前位置:网站首页>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
五、参考
边栏推荐
- [recommendation system 01] rechub
- Mendeley -- a free document management tool that automatically inserts references into papers
- 555 circuit details
- Common shortcut keys in IDA
- A simple example of delegate usage
- The gun startles the dragon, and the crowd "locks" Zhou Zhi
- 【推荐系统 01】Rechub
- Différences entre les contraintes monotones et anti - monotones
- Leetcode-303: region and retrieval - array immutable
- How much review time does it usually take to take the intermediate soft exam?
猜你喜欢
Some superficial understanding of word2vec
中级软件评测师考什么
Mendeley -- a free document management tool that automatically inserts references into papers
The gun startles the dragon, and the crowd "locks" Zhou Zhi
What are the test preparation materials and methods for soft exam information processing technicians?
Unity script visualization about layout code
Is the soft test intermediate useful??
【推荐系统 01】Rechub
2022年上半年5月网络工程师试题及答案
How to prepare for the advanced soft test (network planning designer)?
随机推荐
原型与原型链
How to prepare for the advanced soft test (network planning designer)?
深入理解Apache Hudi异步索引机制
Deep understanding of Apache Hudi asynchronous indexing mechanism
那些易混淆的概念(三):function和class
Multisim -- software related skills
Socket communication principle and Practice
软考一般什么时候出成绩呢?在线蹬?
【STM32】实战3.1—用STM32与TB6600驱动器驱动42步进电机(一)
[pro test feasible] error while loading shared libraries solution
Some online academic report websites and machine learning videos
ThreadLocal is not enough
Elegant controller layer code
【推薦系統 01】Rechub
[pytorch 07] hands on deep learning chapter_ Preliminaries/ndarray exercises hands-on version
SQL Server knowledge collection 11: Constraints
How to play video on unityui
IO model review
BUUCTF---Reverse---reverse1
简单易修改的弹框组件