在上一篇IDEA从安装到称手(一)设置篇中我们基本已经把该设置的都设置完了,但想要用得顺手这些还不够,
话不多说,我们直奔这次主题 - - idea常见插件记录与安装。
未完,将随时持续更新。

一、Free Mybatis plugin

1-1. 作用

mapper跳转xml,快速创建xml方法等。

1-2. 安装

1-1Mybatisplugin

1-3. 效果

1-2Mybatisplugin

二、Maven Helper

2-1. 作用

开启右键run maven菜单

2-2. 安装

2-1MavenHelper

2-3. 效果

2-2MavenHelper

三、.ignore

3-1. 作用

忽略不必要提交的文件

3-2. 安装

3-1ignore

3-3. 使用

3-2-1ignore

3-4. 配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
HELP.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**
!**/src/test/**

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/

### VS Code ###
.vscode/

3-5. 失效处理

当文件已经被添加到git中,那么此时再用.ignore是不会生效的,这时候就必须要先在远程仓库删除,在Terminal本地执行命令如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 删除文件夹(视实际情况执行相应命令即可)
// --cached 表示本地仍旧保留
git rm -r --cached target

git rm -r --cached .idea/*

git rm -r --cached target/*

// 删除文件
git rm --cached springboot-master.iml

// 提交
git commit -m "删除不需要的文件"

// 发布
git push