How to enable Intellij hot code swap

前端 未结 8 1466
清歌不尽
清歌不尽 2020-12-22 20:53

Intellij does not seem to be doing basic hot code swap on my installation.

For this code:

public class MainTest {
    public void method1() {
                


        
8条回答
  •  感情败类
    2020-12-22 21:40

    I wanted hotswap to automatically run every time I saved a Java file. None of the other answers did this so I just:

    1. Created a macro that will run on save: https://stackoverflow.com/a/5581992/14731
    2. Added Action: Hotswap at the end of the macro (Run -> Reload Changed Classes)

提交回复
热议问题