IDEA:配置

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/chao2016/article/details/82591805

1. 安装.ignore插件

1)IntelliJ IDEA -> Preferences -> Plugins -> Browse repositories… -> 搜索.ignore -> install

2)restart idea
3)在idea中选择文件右键会出现 Add to .gitignore file 的选项。

2. 更新maven仓库索引

IntelliJ IDEA -> Preferences -> Build, Execution, Deployment -> Build Tools -> Maven -> Repositories -> 选择Local那一项进行Update

然后在报红时选择Add maven dependency就会出现索引了,可以对已经下载到本地的jar进行补全。

3. 解决报错:Cannot resolve symbol ‘log’

import lombok.extern.slf4j.Slf4j;
@Slf4j

注解后,理应可以使用log.info,但是可能会报红,解决方法如下:
+ 同第1部分的插件安装:lombok plugin
+ restart idea

4. 解决报错:Found duplicated code in this file

IntelliJ IDEA -> Preferences → Editor → Inspections → General(搜索查找) → Duplicated Code.

去掉右边的小勾勾,然后点击Apply按钮应用一下你的设置即可。

5. IDEA中使用git

直接在Terminal中输入命令:

git add .
git status
git commit -am ""
git push

6. 修改默认的配置

File -> Other Settings -> Default Settings...

IntelliJ IDEA -> Preferences → 这修改的当前项目的设置

猜你喜欢

转载自blog.csdn.net/chao2016/article/details/82591805
今日推荐