Intellij IDEA-常用插件

目录

TOC

收集一些好用的插件供大家参考。

Mybatis插件(推荐)

MyBatisCodeHelper-Pro

文档地址: https://gejun123456.github.io/MyBatisCodeHelper-Pro/
功能描述:

  • 通过方法名(不需要方法的返回值和参数 会自动推导出来)来生成sql 可以生成大部分单表操作的sql 只需要一个方法的名字即可 会自动补全好方法的参数和返回值 和springdatajpa的语句基本一致
  • sql全自动提示,sql正确性检测,插件会识别mybatis的一系列标签 如 include trim set where,在这些标签之后的sql可以自动提示数据库的字段,检测sql的正确性,从此不用担心sql写错
  • 直接从Intellij自带的数据库或者配置一个数据库生成crud代码 自动检测好 useGeneratedkey 自动配置好模块的文件夹 只用添加包名就可以生成代码了
  • 从java类生成mybatis crud代码 建表语句 支持生成service,建表支持生成多字段的索引
  • 数据库添加字段后可以继续生成,不会修改之前已经在接口或xml添加的自定义的方法 无需再去进行手动的添加
  • mybatis接口和xml的互相跳转 支持一个mybatis接口对应多个xml
  • mybatis接口中的方法名重构支持
  • xml中的 param的自动提示 if test的自动提示 resultMap refid 等的自动提示
  • resultMap中的property的自动提示
  • xml中refid,resultMap等的跳转到定义
  • 检测没有使用的xml 可一键删除
  • 检测mybatis接口中方法是否有实现,没有则报红 可创建一个空的xml
  • 检测resultmap的property是否有误
  • param检测 检测#{ 中的内容是否有误
  • ognl 支持 if test when test foreach bind中的自动补全,跳转和检测
  • mybatis接口中一键添加param注解
  • mybatis接口一键生成xml
  • 支持spring 将mapper注入到spring中 intellij的spring注入不再报错 支持springboot
  • 一键生成mybatis接口的testcase 无需启动spring,复杂sql可进行快速测试
  • 一键生成两张表关联的join
  • 一键从sql语句中 导出resultMap

Git相关插件

gitignore(推荐)


功能描述:

  • 文件语法突出显示
  • 在项目视图中为忽略的文件着色
  • Gitignore模板按名称和内容过滤和选择规则生成器
  • 用户自定义模板
  • 按指定的Gitignore文件显示忽略的文件(右键单击.gitignore文件)
  • 在当前选择的目录中创建文件
  • 根据GitHub的模板集合生成Gitignore规则
  • 从弹出菜单将选定的文件/目录添加到Gitignore规则
  • 建议.gitignore为新项目创建文件
  • 带有修复措施的条目检查(重复,覆盖,未使用,语法错误,相对条目)
  • 注释和括号支持
  • 导航到项目视图中的条目
  • 重命名忽略文件中的条目
  • 关闭打开的忽略文件操作
  • 具有导入/导出功能的自定义用户模板
  • 文件语法突出显示
  • 在项目视图中为忽略的文件着色
  • Gitignore模板按名称和内容过滤和选择规则生成器
  • 用户自定义模板
  • 按指定的Gitignore文件显示忽略的文件(右键单击.gitignore文件)
  • 在当前选择的目录中创建文件
  • 根据GitHub的模板集合生成Gitignore规则
  • 从弹出菜单将选定的文件/目录添加到Gitignore规则
  • 建议.gitignore为新项目创建文件
  • 带有修复措施的条目检查(重复,覆盖,未使用,语法错误,相对条目)
  • 注释和括号支持
  • 导航到项目视图中的条目
  • 重命名忽略文件中的条目
  • 关闭打开的忽略文件操作
  • 具有导入/导出功能的自定义用户模板

Git Integration 或 Git

IDEA内提供git版本管理的基础功能,使用git必需安装的。

GitToolBox(推荐)

在Idea的状态栏显示git状态,还提供了定时fecth等功能。

Features

  • Git status display:
    • shows number of ahead / behind commits for current branch as status bar widget
    • ahead / behind, current branch, tags on HEAD as Project View decoration on modules
    • can use remote tracking branch or any other 'parent' branch
  • Status bar widget:
    git status
    • tooltip shows info for all repositories
    • popup menu - status refresh
    • popup menu - repository fetch
      git blame
    • tooltip shows detailed blame for file/line
    • popup - detailed blame balloon
    • action to open detailed blame balloon
  • Auto fetch - runs git fetch at fixed intervals
  • Push tags on current branch - available in VCS / Git
  • Behind tracker - shows notification when behind count of current branch changes and is non-zero
  • Branch name completion in Commit dialog - provides branch name completion inside Commit dialog message
  • Blame inlined in active editor - show blame for line at caret in active editor
  • Git Extender integration - can be selected as update action executed from behind tracker popup

Git Flow Integration(推荐)

用于在Idea里面使用Gitflow工作流,使用这个插件需要先在自己的电脑上面安装好Gitflow。

GitLab Projects(推荐)

和GitLab Integration Plugin插件,使用Gitlab作为私有仓库时有用。

Features:

  • GitLab Checkout support - add GitLab autocompleter to IDE Git checkout dialog
  • GitLab Share dialog - allows quick import of new projects to GitLab, user can specify namespace and project visibility
  • GitLab Merge Request dialog - user can quickly create new merge requests from current branch
  • GitLab Merge Request List dialog - user can list and accept all open code reviews

Git Commint Template(推荐)


提供使用如下模板创建提交日志的功能:

扫描二维码关注公众号,回复: 7343421 查看本文章
        <type>(<scope>): <subject>
        <BLANK LINE>
        <body>
        <BLANK LINE>
        <footer>

Alibaba Java Coding Guidelines(推荐)

用于检查代码是否符合阿里巴巴的代码规范。需要在”Settings > Editor > Inspections > Ali-Check“中把检查打开。

Jrebel(强烈推荐)

热部署插件,可大幅提高开发效率。
免费使用方法
激活地址:
http://jrebel.yanjiayu.cn:9001/{GUID}
https://jrebel.qekang.com/{GUID}

GenerateSerialVersionUID

用来在需要序列化的Java对象中生成GUID。
使用此插件前需要先在”Settings > Editor > Inspections > Java > Serialization issues"下把下图中的检查打开

Lombok(推荐)

在Idea里面支持Lombok。Lombok的介绍1介绍2详细使用说明
使用Lombok首先需要在项目中作如下设置

猜你喜欢

转载自www.cnblogs.com/kevinky/p/11573851.html