[Tips] Quicker code <-> preview cycle

Florian

Active Member
Contributor
Architecture
Some tips of how to do a quicker code <-> preview cycle

* Instantly load a world with -loadlastgame argument added by shartte (https://github.com/MovingBlocks/Terasology/pull/1257)
* The Java VM supports "Hot Code Replacement". That means it IDEs can apply your changes to the running program.

Eclipse will apply every change automatically to the running program, when you save. In Intelij Idea you have to press Ctrl+Shift+F9 to trigger a compilation of the current file. Afterwards you will be asked if a hot code replacement should be performed.

The hot code replacement has it's limits, for example you can't add or remove fields to existing classes. However changing methods works really well and is enough in most cases.
 
Top