• IDEA常用快捷键



    快捷键 操作
    alt + r 执行
    alt+/ 提示补全 (Class Name Completion)
    ctrl + / 单行 注释
    ctrl + shift + / 多行注释
    ctrl+alt+down 向下复制一行 (Duplicate Lines)
    ctrl+d 删除一行或选中行 (delete line)
    alt+down 向下移动行(move statement down)
    alt+up 向上移动行(move statement up)
    shift+enter 向下开始新的一行(start new line)
    ctrl+shift+enter 向上开始新的一行 (Start New Line before current)
    ctrl + shift + t 如何查看源码 (class)
    ctrl + 选中指定的结构 如何查看源码 (class)
    alt + enter 万能解错/ 生成返回值变量
    alt + left 退回到前一个编辑的页面 (back)
    alt + right 进入到下一个编辑的页面( 针对于上条) (forward)
    F4 查看继承关系(type hierarchy)
    ctrl+shift+F 格式化代码(reformat code)
    ctrl+alt+/ 提示方法参数类型(Parameter Info)
    ctrl + c 复制代码
    ctrl + z 撤销
    ctrl + y 反撤销
    ctrl + x 剪切
    ctrl + v 粘贴
    ctrl + s 保存
    ctrl + a 全选
    tab 选中数行,整体往后移动
    shift + tab 选中数行,整体往前移动
    ctrl+o 查看类的结构:类似于 eclipse 的 的 outline
    alt+shift+r 重构 : 修改变量名与方法名(rename)
    ctrl+shift+y 大写转小写/ 小写转大写(toggle case)
    alt +shift + s 生成构造 器/get/set/toString
    F2 查看文档说明(quick documentation)
    alt + shift + c 收起所有的方法(collapse all)
    alt+shift+x 打开所有方法(expand all)
    ctrl+shift+x 打开代码所在硬盘文件夹(show in explorer)
    alt+shift+z 生成 try-catch 等(surround with)
    alt+shift+f 局部变量抽取为成员变量(introduce field)
    ctrl+f 查找/ 替换( 当前)
    ctrl+h 查找( 全局)
    double Shift 查找文件
    ctrl + shift + u 查看类的继承结构图(Show UML Diagram)
    ctrl+alt+h 查看方法的多层重写结构(method hierarchy)
    ctrl+alt+f 添加到 收藏(add to favorites)
    alt+shift+m 抽取方法(Extract Method)
     ctrl+E  打开 最近 修改的文件(Recently Files)
     ctrl + w 关闭当前打开的代码栏(close)
     ctrl + shift + w  关闭打开的所有代码栏(close all)
     ctrl + shift + q  快速搜索类中的错误(next highlighted error)
     ctrl+shift+v  选择要粘贴的内容(Show in Explorer)
    ctrl+shift+h
     
    查找方法在哪里被调用(Call Hierarchy)
  • 相关阅读:
    菜单展开效果
    css3 实现运动动画 圆与椭圆
    css3 翻起页脚
    css3 实现loading效果
    css3
    jquery/原生js/css3 实现瀑布流以及下拉底部加载
    JSON
    js中变量声明提前
    Object.prototype.toString.call(obj)检测数据类型
    call,apply,bind与es6的数组扩展运算符...
  • 原文地址:https://www.cnblogs.com/luyj00436/p/16625961.html
Copyright © 2020-2023  润新知