Reputation: 141
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?
Upvotes: 2
Views: 1302
Reputation: 141
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 Recording
Code
> Optimize Imports
Code
> Reformat Code
Ctrl+Shift+F9
File
> Save All
Edit
> Macros
> Stop Macro Recording
Custom 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.
Upvotes: 1