IDEA快捷键拆解系列(八):Refactor篇

简介:   这是IDEA快捷键拆解系列的第八篇。  以下是关于Refactor导航项及其每一子项的拆解介绍,其中,加粗部分的选项是博主认为比较重要的。RefactorRefactor This ( 重构当前 ) Ctrl + Alt + Shift...

  这是IDEA快捷键拆解系列的第八篇。

  以下是关于Refactor导航项及其每一子项的拆解介绍,其中,加粗部分的选项是博主认为比较重要的。

  • Refactor
    1. Refactor This ( 重构当前 ) Ctrl + Alt + Shift + T
    2. Rename ( 重命名 ) Shift + F6
    3. Rename File
    4. Change Signature ( 修改方法、类的签名,含参数、返回值类型等 ) Ctrl + F6
    5. Type Migration ( 类型迁移 ) Ctrl + Shift + F6
    6. Make Static ( 添加Static关键字 )
    7. Convert To Instance Method ( 转换为实例方法 )

    1. Move ( 移动文件 ) F6
    2. Copy ( 拷贝文件 ) F5
    3. Safe Detele ( 安全删除,可用在方法上进行快速删除 ) Alt + Delete

    1. Extract( 提取 )
      • Variable ( 变量 ) Ctrl + Alt + V
      • Constant ( 常量 ) Ctrl + Alt + C
      • Filed ( 类字段 ) Ctrl + Alt + F
      • Parameter ( 参数 ) Ctrl + Alt + p

      • Functional Parameter ( 函数式参数 ) Ctrl + Alt + Shift + P
      • Parameter Object

      • Mehtod ( 方法 ) Ctrl + Alt + M
      • Type Parameter
      • Method Object

      • Delegate
      • Interrface
      • Superclass
      • Subquery ad CTE
    2. Inline ( 转换为内联、方法链形式的调用 ) Ctrl + Alt + N
    3. Find and Replace Code Duplicates
    4. Invert Boolean

    1. Pull Members Up
    2. Push Members Down
    3. Push ITDs In
    4. Use Interface Where Possible
    5. Replace Inheritance with Delegation
    6. Remobe Middleman
    7. Wrap Method Return Value

    1. Convert Anonymous to Inner
    2. Encapsulate Fields ( 封装字端,用于生成Getter/Setter )
    3. Replace Temp With Query
    4. Replace Constructor with Factory Method
    5. Replace Constructor with Builder

    1. Generify
    2. Migrate

    1. Lombok ( Lombok插件:添加 )
      • Default @Date

      • Default @Getter
      • Default @Setter
      • Default @EqualsAndHashcode
      • Default @ToString

      • @Log (and friends)
    2. Delombok ( Lombok插件:删除 )
      • All lombok annotations

      • @Data
      • @Value
      • @Wither
      • @Delegate
      • @Builder

      • @Constructors
      • @Getter
      • @Setter
      • @EqualsAndHashcode
      • @ToString

      • @Log (and friends)
    3. Internationalize(国际化)

IDEA快捷键拆解系列(前言)
IDEA快捷键拆解系列(一)
IDEA快捷键拆解系列(二):File篇
IDEA快捷键拆解系列(三):Edit篇
IDEA快捷键拆解系列(四):View篇
IDEA快捷键拆解系列(五):Navigate篇
IDEA快捷键拆解系列(六):Code篇
IDEA快捷键拆解系列(七):Analyze篇
IDEA快捷键拆解系列(八):Refactor篇
IDEA快捷键拆解系列(九):Build篇
IDEA快捷键拆解系列(十):Run篇
IDEA快捷键拆解系列(十一):Tools篇
IDEA快捷键拆解系列(十二):VCS篇
IDEA快捷键拆解系列(十三):Window篇
IDEA快捷键拆解系列(十四):Help篇
IDEA快捷键拆解系列(十五):经验篇
IDEA快捷键拆解系列(十六):插件篇
IDEA快捷键拆解系列(十七):Debug篇
IDEA快捷键拆解系列(十八):Live Templates篇
IDEA快捷键拆解系列(十九):Postfix篇
IDEA快捷键拆解系列(后记)

目录
相关文章
|
3月前
idea快速生成get set 构造方法的快捷键
idea快速生成get set 构造方法的快捷键
61 0
|
3月前
|
搜索推荐 程序员
IDEA常用快捷键
IDEA常用快捷键
|
11天前
|
前端开发 Java 开发工具
idea篇1:idea快捷键设置
idea篇1:idea快捷键设置
|
4月前
【IDEA】IDEA 快速实现override方法的快捷键
【IDEA】IDEA 快速实现override方法的快捷键
|
2月前
|
人工智能 运维 Linux
一文了解IDEA快捷键操作!玩转IDEA!
一文了解IDEA快捷键操作!玩转IDEA!
95 0
|
3月前
|
Windows
IntelliJ IDEA-常用快捷键3
IntelliJ IDEA-常用快捷键(Shift 快捷键)
|
3月前
IntelliJ IDEA-常用快捷键2
IntelliJ IDEA-常用快捷键2(Alt快捷键)
|
3月前
IntelliJ IDEA-常用快捷键
IntelliJ IDEA-常用快捷键
|
3月前
|
SQL
IDEA常用快捷键展示说明
IDEA常用快捷键展示说明
|
3月前
IntelliJ IDEA常用的快捷键
IntelliJ IDEA常用的快捷键
17 0