Format your code for you as you type

According to this , I can reformat my code as I type, I guess - pressing Enter/Return at the end of line. However, the script ReformatCode.xojo_script (placed in “Scripts” folder) appears in the IDE Script lists, does the custom reformatting when executed when clicked, but I simply can not make it run on Enter/Return key being pressed.
Can anyone help me whit this?
I am running 2017 r2.1.

Did you set the option in ‘Preferences/Coding’?