I have a code that I would like not to re-run each time I'm changing a single variable on debug, in IntelliJ. This is automatically done on the Eclipse IDE but not using IntelliJ.
How to make the program updating itself without having to re-run it?
I have a code that I would like not to re-run each time I'm changing a single variable on debug, in IntelliJ. This is automatically done on the Eclipse IDE but not using IntelliJ.
How to make the program updating itself without having to re-run it?
The following process explains how to live update debug code when saving file. This is especially useful if you need to grope around several values in variables, which may turn out to be very annoying if you have to run your code each time you modify it.
Edit > Macros > Start Macro RecordingCode > Optimize Imports Code > Reformat Code Ctrl+Shift+F9 File > Save AllEdit > Macros > Stop Macro RecordingCustom live code update and confirmCtrl+Shift+S > Keymap > Macros > Choose yours > Add Keyboard Shortcut > Ctrl+S Save All action. Don't worry, you can override it without problem.Hope this helped out some of you.
Everytime you save your file with Ctrl+S, it will now rebuild it (and then updating it on-the-fly when on debug run). Let me know if it does not work for you or if you program under other IntelliJ versions.