插件的使用
插件的设置
在 IntelliJ IDEA 的安装讲解中我们其实已经知道,IntelliJ IDEA 本身很多功能也都是通过插件的方式来实现的,只是 IntelliJ IDEA 本身就是它自己的插件平台最大的开发者而已,开发了很多优秀的插件。
- 官网插件库:JetBrains Marketplace
- 如上图标注 1 所示,IntelliJ IDEA 对插件进行了很好的分类:
All plugins
显示所有插件。
Enabled
显示当前所有已经启用的插件。
Disabled
显示当期那所有已经禁用的插件。
Bundled
显示所有 IntelliJ IDEA 自带的插件。
Custom
显示所有我们自行安装的插件,如果你自己装了很多次插件的话,这个选项会用得比较多。
如上图标注 2 所示,启用的插件是被勾选的,如果要禁用一个插件,去掉勾选即可。
如上图标注 3 所示,弹出 IntelliJ IDEA 公司自行开发的插件仓库列表,供下载安装。
如上图标注 4 所示,弹出插件仓库中所有插件列表供下载安装。
如上图标注 5 所示,浏览本地的插件文件进行安装,而不是从服务器上下载并安装。
需要严重注意的是:在国内的网络下,很经常出现显示不了插件列表,或是显示了插件列表,无法下载完成安装。这时候请自行开VPN,一般都可以得到解决。
- 如上图红圈所示,如果 IntelliJ IDEA 打开一个它可以识别并且支持的文件类型,它会提示你它有对应的插件进行支持,你可以安装对应的插件来加以兼容此类文件。
插件的安装
- 如上图 Gif 演示,在线安装 IntelliJ IDEA 插件库中的插件。
- 如上图 Gif 演示,离线安装本地插件文件。
插件推荐
插件名称 | 插件介绍 | 官网地址 |
---|---|---|
.ignore | 各类版本控制忽略文件生成工具 | [.ignore - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/7495--ignore ".ignore - IntelliJ IDEs Plugin |
Alibaba Java Coding Guidelines | 阿里巴巴出的代码规范检查插件 | [Alibaba Java Coding Guidelines - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/10046-alibaba-java-coding-guidelines "Alibaba Java Coding Guidelines - IntelliJ IDEs Plugin |
Alibaba Cloud Toolkit | 阿里云辅助开发工具 | [Alibaba Cloud Toolkit - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/11386-alibaba-cloud-toolkit "Alibaba Cloud Toolkit - IntelliJ IDEs Plugin |
BashSupport | Bash 支持 | [BashSupport - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/4230-bashsupport "BashSupport - IntelliJ IDEs Plugin |
CheckStyle-IDEA | 代码规范检查 | [CheckStyle-IDEA - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/1065?pr=idea "CheckStyle-IDEA - IntelliJ IDEs Plugin |
Eclipse Code Formatter | 使用 Eclipse 的代码格式化风格,在一个团队中如果公司有规定格式化风格,这个可以使用。 | [Adapter for Eclipse Code Formatter - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/6546?pr=idea "Adapter for Eclipse Code Formatter - IntelliJ IDEs Plugin |
FindBugs-IDEA | 潜在 Bug 检查 | [FindBugs-IDEA - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/3847?pr=idea "FindBugs-IDEA - IntelliJ IDEs Plugin |
Gitee | 开源中国的码云插件 | [Gitee - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/8383-gitee "Gitee - IntelliJ IDEs Plugin |
Grep Console | 自定义设置控制台输出颜色 | [Grep Console - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/idea/plugin/7125-grep-console "Grep Console - IntelliJ IDEs Plugin |
Git Flow Integration | Git Flow 的图形界面操作 | [Git Flow Integration - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/7315-git-flow-integration "Git Flow Integration - IntelliJ IDEs Plugin |
GsonFormatPlus | 把 JSON 字符串直接实例化成类 | [GsonFormatPlus - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/14949-gsonformatplus "GsonFormatPlus - IntelliJ IDEs Plugin |
Json2Pojo | 根据 JSON 生成 POJO,根据 POJO 生成 JSON | [Json2Pojo - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/8533-json2pojo "Json2Pojo - IntelliJ IDEs Plugin |
GenerateAllSetter | new POJO类的快速生成 set 方法 | [GenerateAllSetter - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/9360-generateallsetter "GenerateAllSetter - IntelliJ IDEs Plugin |
IDE Features Trainer | IntelliJ IDEA 官方出的学习辅助插件 | [IDE Features Trainer - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/8554?pr=idea "IDE Features Trainer - IntelliJ IDEs Plugin |
JRebel Plugin | 热部署 | [JRebel and XRebel - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/?id=4441 "JRebel and XRebel - IntelliJ IDEs Plugin |
Jindent-Source Code Formatter | 自定义类、方法、doc、变量注释模板 | [Jindent - Source Code Formatter - IntelliJ IDEs Plugin | Marketplace](http://plugins.jetbrains.com/plugin/2170?pr=idea "Jindent - Source Code Formatter - IntelliJ IDEs Plugin |
Key promoter | 快捷键提示 | [Key promoter - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/4455?pr=idea "Key promoter - IntelliJ IDEs Plugin |
kubernetes | kubernetes 辅助工具 | [Kubernetes - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/10485-kubernetes "Kubernetes - IntelliJ IDEs Plugin |
Lombok Plugin | Lombok 功能辅助插件 | [Lombok - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/6317-lombok-plugin "Lombok - IntelliJ IDEs Plugin |
MetricsReloaded | 代码复杂度检查 | [MetricsReloaded - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/93?pr=idea "MetricsReloaded - IntelliJ IDEs Plugin |
Maven Helper | Maven 辅助插件 | [Maven Helper - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/7179-maven-helper "Maven Helper - IntelliJ IDEs Plugin |
Markdown Navigator | 书写 Markdown 文章 | [Markdown Navigator Enhanced - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/7896?pr=idea "Markdown Navigator Enhanced - IntelliJ IDEs Plugin |
MybatisX | mybatis 框架辅助(免费) | [MyBatisX - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/10119-mybatisx "MyBatisX - IntelliJ IDEs Plugin |
MyBatis Log Plugin | Mybatis SQL 提取 | [MyBatis Log Plugin - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/10065-mybatis-log-plugin "MyBatis Log Plugin - IntelliJ IDEs Plugin |
MapStruct Support | 对 MapStruct 属性转换支持 | [MapStruct Support - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/10036-mapstruct-support "MapStruct Support - IntelliJ IDEs Plugin |
OnlineSearch | 选择文本后支持不同搜索引擎进行搜索 | [OnlineSearch - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/8298-onlinesearch/ "OnlineSearch - IntelliJ IDEs Plugin |
Properties to YAML Converter | 把 Properties 的配置格式改为 YAML 格式 | [Properties to YAML Converter - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/8000-properties-to-yaml-converter "Properties to YAML Converter - IntelliJ IDEs Plugin |
RestfulToolkit | 方便查找 Spring MVC 的 RequestMapping | [RestfulToolkit - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/10292-restfultoolkit "RestfulToolkit - IntelliJ IDEs Plugin |
Rainbow Brackets | 对各个对称括号进行着色,方便查看 | GitHub - izhangzhihao/intellij-rainbow-brackets: 🌈Rainbow Brackets for IntelliJ based IDEs/Android Studio/HUAWEI DevEco Studio |
String Manipulation | 驼峰式命名和下划线命名交替变化 | [String Manipulation - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/2162?pr=idea "String Manipulation - IntelliJ IDEs Plugin |
Statistic | 代码统计 | [Statistic - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/4509?pr=idea "Statistic - IntelliJ IDEs Plugin |
Scala | 对 Scala 支持 | [Scala - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/1347-scala "Scala - IntelliJ IDEs Plugin |
Translation | 翻译插件 | GitHub - YiiGuxing/TranslationPlugin: Translation plugin for IntelliJ based IDEs/Android Studio. |
VisualVM Launcher | 项目启动的时候也启动 VisualVM | [VisualVM Launcher - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/7115-visualvm-launcher "VisualVM Launcher - IntelliJ IDEs Plugin |
arthas idea | 阿里 arthas 支持 | [arthas idea - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/13581-arthas-idea "arthas idea - IntelliJ IDEs Plugin |
Multirun | 启动多应用 | [Multirun - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/7248-multirun "Multirun - IntelliJ IDEs Plugin |
BrowseWordAtCaret | 简单代替Ctrl+F,通过快捷键的方式直接跳转到下个同单词位置 | [BrowseWordAtCaret - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/201-browsewordatcaret "BrowseWordAtCaret - IntelliJ IDEs Plugin |
CodeGlance2 | 在编辑代码最右侧,显示一块代码小地图,前端代码适合 | [CodeGlance2 - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/15562-codeglance2 "CodeGlance2 - IntelliJ IDEs Plugin |
Save Actions | 在保存代码时触发一系列自定义操作,比如优化导入包、格式化、添加删除部分代码等 | [Save Actions - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/7642-save-actions "Save Actions - IntelliJ IDEs Plugin |
MurphySec Code Scan | 检测依赖包相关安全问题 | [MurphySec Code Scan - IntelliJ IDEs Plugin | Marketplace](https://plugins.jetbrains.com/plugin/18274-murphysec-code-scan "MurphySec Code Scan - IntelliJ IDEs Plugin |
lombok 插件的使用
-
lombok 插件官网:Lombok - IntelliJ IDEs Plugin | Marketplace
-
推荐 IntelliJ IDEA 插件库搜索安装:
- File > Settings > Plugins > Browse repositories... > Search for "lombok" > Install Plugin
-
IntelliJ IDEA 配置方法,官网有说明(该配置是 Project 级别,不是 IDE 全局的):GitHub - mplushnikov/lombok-intellij-plugin: Lombok Plugin for IntelliJ IDEA