开发工具使用 - Intellij Idea

环境变量

如果环境变量有修改,Idea需要重启才能生效

设置代码缩进用tab还是空格

选择File→Settings→Editor→Code style→Java,再点击右边的Tabs and Indents。
1、将Use tab character的勾选去掉。
2、将Indent设置为4(即缩进为4个空格)。

多版本隔离

插件安装位置
Windows:
C:\Users\用户名.IntelliJIdea20xx.X\config\plugins

2020版本以上
Windows:
C:\Users\Administrator\AppData\Roaming\JetBrains\IntelliJIdea20xx.x\plugins

常见问题

当执行单个单元测试时,Idea总是会执行mvn install

去掉delegate build/run actions to Maven选项的勾选, 位置:File | Settings | Build, Execution, Deployment | Build Tools | Maven | Runner:

image

posted @ 2025-12-20 11:08  vonlinee  阅读(9)  评论(0)    收藏  举报