
参考插件帝:https://gitee.com/zhengqingya/java-developer-document
突发小技巧:使用插件时要注意插件的版本兼容性,并根据自己的实际需求选择合适的插件。同时,不要过度依赖插件,保持简洁和高效的开发环境才是最重要的。

文章目录
-
- [1. Smart Tomcat](#1. Smart Tomcat)
- [2. Database Navigator](#2. Database Navigator)
- [3. Spring Boot Assistant](#3. Spring Boot Assistant)
- [4. JBLJavaToWeb](#4. JBLJavaToWeb)
- [5. JBLSpringBootAppGen](#5. JBLSpringBootAppGen)
- [6. Lombok](#6. Lombok)
- [7. GenerateAllSetter](#7. GenerateAllSetter)
- [8. Maven Helper](#8. Maven Helper)
- [9. Git Commit Template](#9. Git Commit Template)
- [10. GitToolBox](#10. GitToolBox)
- [11. Rainbow Brackets](#11. Rainbow Brackets)
- [12. CodeGlance Pro](#12. CodeGlance Pro)
- [13. Grep Console](#13. Grep Console)
- [14. .ignore](#14. .ignore)
- [15. maven-search](#15. maven-search)
- [16. MyBatisPlus](#16. MyBatisPlus)
- [17. MyBatisX](#17. MyBatisX)
- [18. Nyan Progress Bar](#18. Nyan Progress Bar)
- [19. Sequence Diagram](#19. Sequence Diagram)
- [20. Statistic](#20. Statistic)
- [21. Translation](#21. Translation)
- [22. String Manipulation](#22. String Manipulation)
- [23. Rider UI Theme Pack](#23. Rider UI Theme Pack)
- [24. Presentation Assistant](#24. Presentation Assistant)
- [25. GitHub Copilot](#25. GitHub Copilot)
- [26. Java Stream Debugger](#26. Java Stream Debugger)
- [27. Java Mybatis SQL Scanner](#27. Java Mybatis SQL Scanner)
- [28. RestfulTool、RestfulToolkit-fix](#28. RestfulTool、RestfulToolkit-fix)
- [29. Alibaba Java Coding Guidelines](#29. Alibaba Java Coding Guidelines)
- [30. Easy Javadoc](#30. Easy Javadoc)
- [31. SpotBugs](#31. SpotBugs)
1. Smart Tomcat
顾名思义就是配置tomcat的,跟专业版配置小猫类似。


2. Database Navigator
类似专业版的数据库管理工具。


3. Spring Boot Assistant
SpringBoot开发插件。(可以识别springboot主配置文件,以及代码提示,我这个版本idea没有构建springboot项目功能)
社区版idea的services面板中没有添加springoboot应用的功能。



4. JBLJavaToWeb
把maven工程转成web项目。

选中一个项目,然后鼠标右键点击JBLJavaToWeb。
解决Maven项目webapp没有小蓝点问题:

web项目结构:

- 通过执行Maven打包命令
package
,可以获取到部署的Web项目目录。 - 编译后的 Java字节码文件 和 resources的资源文件 ,会被放到 WEB-INF 下的
classes
目录。 - pom.xml中依赖坐标对应的jar包,会被放入 WEB-INF 下的
lib
目录。
5. JBLSpringBootAppGen
用法跟上面的非常相似,可以帮助我们生成启动类和application.yml文件。

选中要生成主类的项目,然后鼠标右键点击JBLSpringBootAppGen。



6. Lombok
我们知道在项目中导入lombok依赖,然后通过注解简化实体开发。但是使用这个操作之前需要在IDEA中安装lombok插件。(小辣椒)

7. GenerateAllSetter
当一个类有大量实例字段时,通过这个插件就可以快速为对象赋值和取值。快捷键:选中对象,然后alt+回车。


java
@Test
public void test0() {
User user = new User();
user.setUserName("");
user.setAge(0);
}
8. Maven Helper
Maven Helper提供一些方便的功能(依赖分析、冲突解决和运行配置等等),帮我们更好地管理和分析Maven项目。


在IDEA中,当打开一个pom.xml文件时,可能会看到一个名为"Dependency Analyzer"的选项卡。这个选项卡提供了一个可视化界面,用于解决项目中的依赖冲突。
要解决冲突的jar包,可以按照以下步骤进行操作:
-
打开pom.xml文件,并切换到"Dependency Analyzer"选项卡。
-
在"Dependency Analyzer"界面中,你将看到一个依赖关系图,显示了项目中所有的依赖关系。
-
在依赖关系图中,你可以看到有冲突的依赖项以及它们之间的关系。冲突的依赖项通常会以红色或其他突出显示。
-
点击冲突的依赖项,你将看到更详细的信息,包括引起冲突的不同版本和它们所属的模块。
-
解决依赖冲突的一种常见方法是通过手动调整项目的依赖关系来排除或更新冲突的依赖项。你可以右键单击冲突的依赖项,然后选择相应的操作,例如"Exclude"(排除)或"Update Version"(更新版本)。
-
在进行任何更改之前,建议先备份你的项目或使用版本控制系统,以便在需要时可以恢复到之前的状态。

通过使用"Dependency Analyzer"选项卡,可以更方便地查看和解决项目中的依赖冲突。这有助于确保项目的依赖关系正确,并避免潜在的运行时错误。
9. Git Commit Template
Git 格式化模版,可以按照实际情况格式化你的提交信息。常用的Git提交类型有:(通过这个插件就不用我们手写命令了)
- feat(新功能)
- fix(修复bug)
- docs(文档更新)
- refactor(重构,既不修复bug也不添加新功能)
- chore(只对构建过程或构建工具的改变,并没有对生产环境代码的进行改变,例如修改构建脚本、更新依赖项等)
- style(对代码样式、格式化的更改,不影响代码逻辑)
- revert(撤销先前的提交)
- perf(性能优化相关的更改)
- test(添加或修改测试代码)
- ...


点击ok后,就会安装配置生成commit模板:

10. GitToolBox
可以更直观看到哪块代码是谁写的。(有的版本开始收费了)

这个插件好像开始收费了,什么免费试用30天,也有免费版本的:


成年人的世界里看破不说破😀哈哈哈

11. Rainbow Brackets
江湖俗称彩色大括号,部分版本开始收费了,下面我使用的是作者提供的免费版。


12. CodeGlance Pro
代码地图。(在右侧显示)开启/关闭快捷键:shift+ctrl+g
CodeGlance Pro插件相关快捷键:https://zhuanlan.zhihu.com/p/509878382?utm_id=0


13. Grep Console
俗称彩色控制台。可以自定义设置控制台输出颜色,以及不同日志信息级别的颜色和背景色。


14. .ignore
生成git忽略文件的工具。


提供了一些忽略文件的模板:

15. maven-search
在idea中快速搜索依赖坐标。

16. MyBatisPlus
mp代码生成器插件

使用方法:https://blog.csdn.net/qq_46921028/article/details/131463171
17. MyBatisX
可以让mapper接口与xml文件之间进行切换。

18. Nyan Progress Bar
彩色小猫进度条。

19. Sequence Diagram
生成代码时序图。




20. Statistic
统计代码行数。

21. Translation
翻译插件。

22. String Manipulation
操作字符串的(转大驼峰、小驼峰、常量名、生成MD5密串等等),快捷键:alt+m

23. Rider UI Theme Pack
主题插件。

24. Presentation Assistant
方便查看你每次使用的快捷键。

25. GitHub Copilot
AI代码提示。(花米)

26. Java Stream Debugger
debug调试stream流。

27. Java Mybatis SQL Scanner
扫描 Mybatis SQL XML 文件,分析出不规范或者潜在风险的SQL。

28. RestfulTool、RestfulToolkit-fix
API 接口调试工具。(两者选择一个即可)。
新版idea可以根据路径跳转对应控制方法:

29. Alibaba Java Coding Guidelines
阿里巴巴 Java代码规范插件。

30. Easy Javadoc
光标放在需要注释的类/方法/属性上 通过快捷键
ctrl+\
自动添加注释。

如果快捷键冲突了,可以通过以下方法修改快捷键:(修改快捷键:https://blog.csdn.net/m0_67686967/article/details/125161883)

测试:

注释模板格式可以自行配置:

31. SpotBugs
Java质量分析工具,可以帮我们查找代码中隐藏的bug。
