Wurst has integrated support for JHCR to reload code while the map is running. This allows you to iterate quickly, because it is not necessary to test the map from the beginning after every code change.
If you have not installed Wurst and Visual Studio Code yet, you should first check out the Setup Guide.
Then to setup JHCR:
wurst.jhcrExeto the jhcr executable you extracted in step 1. For example
Configure the Visual Studio Code Setting
wurst.customMapDataPath to point to the path where Warcraft stores custom map data.
This is usually something like
This path will be passed to the
--preload-path option of Jass Hot Code Reload (JHCR). If you do not specify this path, Wurst will try to detect the correct folder.
To use Hot Code Reload, simply run your map using your map with the
wurst: Hot Run a Wurst map with Jass Hot Code Reload (JHCR)and hit
After Warcraft has started you can edit your code and when you want to load your changes into the running WC3 instance you simply run the the
wurst: Hot reload code for a Wurst map started with Jass Hot Code Reload (JHCR)and hit
ESCto trigger the reload.
If you want to use these commands often, you can assign keyboard shortcuts for them in Visual Studio Code.