IDEA基本配置

IDEA通用插件安装

Alibaba Java Code Guidelines

  • Preferences >> Plugins >> Marketplace
  • 查询Alibaba Java Code Guidelines并安装后重启

Git Flow Integration

git flow集成

GitToolBox

行代码给与log历史提示

类的注释格式

  • Preferences >> Editor >> File and Code Templates >> Includes >> File Header
1
2
3
4
5
/**
* @author: Perkins
* @date: ${DATE}
* @description: todo
*/

lombok

  • IDEA插件查询lombok并安装

  • pom

    1
    2
    3
    4
    5
    6
    <dependency>
    <groupId>org.projectlombok</groupId>
    <artifactId>lombok</artifactId>
    <version>1.16.18</version>
    <scope>provided</scope>
    </dependency>
  • 代码使用注解@Data,@Log

快捷键

  • 左侧缩进:先选中多行,Shift+Tab多次,直至对齐
  • 左侧对齐后的竖着多行选中:Option+光标上下选中
  • 光标最左右侧移动,command+左右方向键
  • 选中光标直至最左、右侧,command+shift+左右方向键
  • 选中右侧第一个单词,command+w
------ 本文结束------

本文标题:IDEA基本配置

文章作者:Perkins

发布时间:2019年06月24日

原始链接:https://perkins4j2.github.io/posts/49684/

许可协议: 署名-非商业性使用-禁止演绎 4.0 国际 转载请保留原文链接及作者。