At the moment I have created the following workaround:
Add a new tool in the tools menu
With the following settings:
astyle
-A1 --indent=spaces=2 -f -j $(ACTIVE_EDITOR_FILENAME)
This does the job for me at the moment.
(Detecting the change on disk is slow, but acceptable)