官网:https://www.jetbrains.com/idea/
1、IntelliJ IDEA官方主题插件Material Theme UI

可以到网站上下载jar包自己安装,也可以在IntelliJ IDEA中安装
File - Settings - Plugins - Browse Respositories
搜索Material Theme UI进行安装,重启IntelliJ IDEA即可,各种样式安装后自己选择!
2、IntelliJ IDEA配置database连接数据库
上方导航栏 View - Tool Windows - Database

打开之后以后应该就会固定在右侧,点击“+”号,选择“Data Source”,然后选择自己使用的数据库(以MySql为例)

3、IntelliJ IDEA使用eclipse导出的formatter.xml文件
File - Settings - Plugins - Browse Respositories
搜索“Eclipse Code Formatter”插件,安装、重启IntelliJ IDEA
然后在File - Settings - Other Settings - Eclipse Code Formatter中设置即可

4、IntelliJ IDEA使用mybatis时,mapper.xml文件写的SQL语句报“SQL Dialect is Not Configured”警告
File - Settings - Languages & Frameworks - SQL Dialects
选择自己使用的数据库即可

5、IntelliJ IDEA中SVN的配置和详细使用
IntelliJ IDEA 下的svn配置及使用的非常详细的图文总结 - CSDN博客
6、IntelliJ IDEA使用ctrl+鼠标滚轮调节字体大小
File - Setting - Editor - General
勾上该选项

使用Ctrl+鼠标滚轮即可调整当前页面字体大小
7、IntelliJ IDEA Springboot实现热部署
首先pom.xml文件添加spring-boot-devtools依赖:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
接着再plugins标签内添加如下配置

<!-- 配置项目热更新 -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<!-- 如果没有配置该项devtools不会起作用 -->
<fork>true</fork>
<!-- 支持静态文件热更新 -->
<addResources>true</addResources>
</configuration>
</plugin>
IntelliJ IDEA还需要另外配置如下两项:
1);File - Settings - Build, Execution, Deployment - Compiler
勾上 Build project automatically

2);顶部导航栏 Help - Find Action,搜索 Registry,第一个

将 compiler.automake.allow.when.app.running 选项勾上

上述操作完成后,重启IntelliJ IDEA即可
网友评论