IntelliJ IDEA快捷键

跳转:
  1. Ctrl+Home/End,光标中跳转到第一行或最后一行下
  2. Ctrl+B/Ctrl+Click,快速打开光标处的类或方法(跳转到定义处)
  3. Ctrl+Alt+B,跳转到方法实现处
  4. Ctrl+Shift+Backspace,跳转到上次编辑的地方
  5. Ctrl+Alt+Up/Down,快速跳转搜索结果
 
Ctrl+ O : 自动覆盖接口对应的方法
Ctrl+ l: implements methods
Ctrl + Alt + T :自动补充 if-else try-catch for synchronized .. 【】
Ctrl+Alt+L 格式化代码
Ctrl+Alt+O 优化导入的类和包
 
 
Ctrl+` :切换关键键的模式
Alt+回车 导入包,自动修正
Ctrl+N 查找类
Ctrl+Shift+N 查找文件
 
Alt+Insert 生成代码(如get,set方法,构造函数等)
Ctrl+E或者Alt+Shift+C 最近更改的代码
Ctrl+R 替换文本
Ctrl+F 查找文本
Ctrl+Shift+Space 自动补全代码
Ctrl+空格 代码提示
Ctrl+Alt+Space 类名或接口名提示
Ctrl+P 方法参数提示
Ctrl+Shift+Alt+N 查找类中的方法或变量
Alt+Shift+C 对比最近修改的代码
 
Shift+F6 重构-重命名
Ctrl+Shift+先上键
Ctrl+X 删除行
Ctrl+D 复制行
Ctrl+/ 或 Ctrl+Shift+/ 注释(// 或者/*...*/ )
Ctrl+J 自动代码
Ctrl+E 最近打开的文件
Ctrl+H 显示类结构图
Ctrl+Q 显示注释文档
Alt+F1 查找代码所在位置
Alt+1 快速打开或隐藏工程面板
Ctrl+Alt+ left/right 返回至上次浏览的位置
Alt+ left/right 切换代码视图
Alt+ Up/Down 在方法间快速移动定位
Ctrl+Shift+Up/Down 代码向上/下移动。
F2 或Shift+F2 高亮错误或警告快速定位
 
代码标签输入完成后,按Tab,生成代码。
选中文本,按Ctrl+Shift+F7 ,高亮显示所有该文本,按Esc高亮消失。
Ctrl+W 选中代码,连续按会有其他效果
选中文本,按Alt+F3 ,逐个往下查找相同文本,并高亮显示。
Ctrl+Up/Down 光标跳转到第一行或最后一行下
Ctrl+B 快速打开光标处的类或方法
Ctrl+Alt+B :打开方法实现
 
快捷键:
 
 
Ctrl+Shift+F 类似于 eclipse 的 ctrl+h ,全局搜索
 
 
 
 
调试
F9 resume programe 恢复程序
Alt+F10 show execution point 显示执行断点
F8 Step Over 相当于eclipse的f6 跳到下一步
F7 Step Into 相当于eclipse的f5就是 进入到代码
Alt+shift+F7 Force Step Into 这个是强制进入代码
Shift+F8 Step Out 相当于eclipse的f8跳到下一个断点,也相当于eclipse的f7跳出函数
Atl+F9 Run To Cursor 运行到光标处
ctrl+shift+F9 debug运行java类
ctrl+shift+F10 正常运行java类
alt+F8 debug时选中查看值
 
Use Alt+向上箭头 and Alt+向下箭头 keys to quickly move between methods in the editor.
Ctrl+Shift+J shortcut joins two lines into one and removes unnecessary space to match your code style.
Use the Ctrl+Shift+V shortcut to choose and insert recent clipboard contents into the text.
To easily evaluate the value of any expression while debugging the program, select its text in the editor (you may press a Ctrl+W a few times to efficiently perform this operation) and press Alt+F8.
 
 
alt+shift+f9 :打开 debug 列表
 
Ctrl+G :跳转到指定的行号 类似于 Eclipse 的 Ctrl+L
 
ctrl+alt+o:自动引入 岗位 包
 
 
posted @ 2017-07-20 22:54  JillWen  阅读(318)  评论(0编辑  收藏  举报