intelij idea快捷键

JAVA学习网 2020-10-16 14:08:01

idea

常见命令

alt + 数字键 跳转到小工具 esc 回到代码编辑
项目之间跳转 Ctrl + Alt + ] Ctrl+Alt+[
Window--->Next Project Window Previous Project Window
文件之间跳转
最近打开的文件 Ctrl+E
最近修改的文件 Ctrl+Shift+E
Help--->Find Action Ctrl+Shift+A
ctrl + shift + backspace 上次修改位置
浏览位置切换 ctrl + 左箭头/右箭头
ctrl + f11 设置书签 ctrl+书签号 调到对应位置
搜索类ctrl + n
搜索文件 ctrl + shift + n
搜索符号(函数) ctrl + alt +shift +n
搜索字符串 ctrl + shift + f
ctrl + tab 切换窗口
ctrl + alt + shift +j 选中所有行相同的(列操作)
live template 重复相同操作
postfix:
n.fori 一个执行n次的for循环
new Date().sout 输出一个日期,date可以换成别的属性
name.field 自动生成构造函数的this 和 定义 private String name;
user.return 返回
判断user!=null 的if语句 user.nn
alt + enter 神器
shift + f6 重构的变量重命名
ctrl + f6 重构函数签名 alt + enter 重构函数
抽取变量 ctrl + alt +v
抽取静态常量 ctrl + alt + c
抽取成员变量 ctrl + alt + f System.out.println("hello");对hello 进行抽取
抽取方法参数 ctrl + alt + p
抽取函数 ctrl + alt + m
ctrl + alt +shift + 向上箭头 previous change
ctrl + alt +z 各种撤销 ,文件文件夹,文本等等
ctrl + shift + a输入local history 可以查看历史的修改
put label 增加版本
ctrl + f8 设置断点
alt + shift + f10 运行
alt + shift + f9 调试 f8按行运行 f9跳到下一个端点没有就结束 ctrl+shirft+f8查看所有端点 alt+f9 跳到指定行
ctrl + f2 停止执行
f5 复制 alt + insert 新建一个文件 f6移动
ctrl + c复制文件名 ctrl + shift +c 复制完整路径 ctrl + alt +h看函数调用
ctrl + shift +v剪贴板
ctrl + f12 调出类的大纲 ctrl + h 看出继承结构
ctrl + shift + alt +u 类图或maven图
ctrl + f4 关闭当前文件
ctrl +/注释 取消注释

阅读(2889) 评论(0)