实用分享:IntelliJ IDEA个人实用配置

idea (49) 2023-03-24 22:04

大家好,我是编程小6,很高兴遇见你,有问题可以及时留言哦。

主题

实用分享:IntelliJ IDEA个人实用配置_https://bianchenghao6.com/blog_idea_第1张

字体

  • 推荐DejaVu Sans Mono,这个字体绝对爽翻
  • 第二推荐Courier 或者 Courier New
  • IDEA应用字体
实用分享:IntelliJ IDEA个人实用配置_https://bianchenghao6.com/blog_idea_第2张

* 代码字体

实用分享:IntelliJ IDEA个人实用配置_https://bianchenghao6.com/blog_idea_第3张

* 预览

实用分享:IntelliJ IDEA个人实用配置_https://bianchenghao6.com/blog_idea_第4张

常用插件

  • Alibaba Java Coding Guidelines
  • 阿里巴巴编程规范,可以检查自己的java命名规范编程规范以及bug,并会给出相应的解决方案
实用分享:IntelliJ IDEA个人实用配置_https://bianchenghao6.com/blog_idea_第5张
实用分享:IntelliJ IDEA个人实用配置_https://bianchenghao6.com/blog_idea_第6张
  • Grep Console
  • 对控制台输出的不同级别的日志进行上色,比如info级别是黑色,WARN级别是黄色,ERROR是橙色。不用找日志把眼睛找瞎了。
实用分享:IntelliJ IDEA个人实用配置_https://bianchenghao6.com/blog_idea_第7张
  • Kotlin
  • 项目中使用到了Kotlin可以安装
  • Lombok Plugin
  • 简化重复的java代码
  • Translation
  • 翻译
实用分享:IntelliJ IDEA个人实用配置_https://bianchenghao6.com/blog_idea_第8张
实用分享:IntelliJ IDEA个人实用配置_https://bianchenghao6.com/blog_idea_第9张
  • java反编译插件 Java Bytecode Decompiler
实用分享:IntelliJ IDEA个人实用配置_https://bianchenghao6.com/blog_idea_第10张
  • before
实用分享:IntelliJ IDEA个人实用配置_https://bianchenghao6.com/blog_idea_第11张
  • after
实用分享:IntelliJ IDEA个人实用配置_https://bianchenghao6.com/blog_idea_第12张
  • 热加载插件(牛*货) JRebal
  • 代码改动之后无需重启服务,被修改的类会自动重新加载
实用分享:IntelliJ IDEA个人实用配置_https://bianchenghao6.com/blog_idea_第13张
  • 滚动条-CodeGlance
实用分享:IntelliJ IDEA个人实用配置_https://bianchenghao6.com/blog_idea_第14张

重磅(代码模板 类似sout,syso)

  • Editor->General->Postfix Completion
实用分享:IntelliJ IDEA个人实用配置_https://bianchenghao6.com/blog_idea_第15张
  • Editor->Live Templates->other
实用分享:IntelliJ IDEA个人实用配置_https://bianchenghao6.com/blog_idea_第16张

private static final Logger LOGGER = LoggerFactory.getLogger($CLASS_NAME$.class);

@Test

public void test$VAR$(){

}

  • 使用
实用分享:IntelliJ IDEA个人实用配置_https://bianchenghao6.com/blog_idea_第17张
实用分享:IntelliJ IDEA个人实用配置_https://bianchenghao6.com/blog_idea_第18张

通过git同步idea的设置

使用方法:

  1. idea
  2. File | Settings Repository指定远程仓库地址(自己在github或者gitee上新建一个空的git仓库即可)
  3. Overwrite Local or Overwrite Remote

IntelliJ IDEA个人配置(持续更新)

  • 文件头
实用分享:IntelliJ IDEA个人实用配置_https://bianchenghao6.com/blog_idea_第19张
  • Rainbow Brackets-彩色括号匹配
实用分享:IntelliJ IDEA个人实用配置_https://bianchenghao6.com/blog_idea_第20张
  • Atom File Icons IDEA(图标)
实用分享:IntelliJ IDEA个人实用配置_https://bianchenghao6.com/blog_idea_第21张

发表回复