41 lines
1.8 KiB
Markdown
41 lines
1.8 KiB
Markdown
# Intellij IDEA
|
||
|
||
## Spring Boot DevTools热重载
|
||
|
||
pom.xml引入依赖
|
||
|
||
```xml
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-devtools</artifactId>
|
||
<!-- 只在运行时起作用,打包时不打进去(防止线上执行打包后的程序,启动文件监听线程File Watcher,耗费大量的内存资源) -->
|
||
<scope>runtime</scope>
|
||
<!-- 防止将依赖传递到其他模块中 -->
|
||
<optional>true</optional>
|
||
</dependency>
|
||
<plugin>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
</plugin>
|
||
```
|
||
|
||
打开IDEA设置 找到 Build, Execution, Deployment -> Compiler -> Build project automatically 勾选
|
||
|
||

|
||
|
||
继续找到Advanced Settings 勾选 Allow auto-make to start even if developed application is currently running
|
||
|
||

|
||
|
||
# JetBrains Rider
|
||
|
||
## 安装CodeGlance Pro后关闭原有的在滚动条悬停时显示代码
|
||
|
||
CodeGlancePro是一款用于在编辑器旁边显示代码缩略图的插件。
|
||
|
||
如果您想要把之前的代码预览隐藏,可以通过以下操作实现:
|
||
|
||
1. 打开JetBrains Rider,进入设置界面。可以通过快捷键`Ctrl+Alt+S`(Windows/Linux) 或 `Cmd+,`(Mac) 快速打开设置界面。
|
||
2. 在“Editor”中,找到“General”选项卡。在这个选项卡中,找到“Appearance”,其中有一个“Show code lens on scrollbar hover”复选框。取消选中该复选框可隐藏在滚动条悬停时显示代码。
|
||
|
||
 |