Previewing procedural drawing code in editor

Maybe you will find a suitable solution if you search for Hot Reload.

Hot Reload

Hot reloading with VSCode and also debugging with VSCode

Hot reload in Godot (instantly see changes without reloading a game)


There are also some pull requests, it may be improved in the future.
Github PR "reload: "Pull requests · godotengine/godot · GitHub

You could also compile your own Godot Editor if you don’t want to wait long.