Script editor code blocks end automatically

In the script editor, my code blocks started closing automatically (end appears automatically after functions and if statements) without me changing any options.

Does anyone know how to stop this from happening?

I’ve tried restarting.

Try restarting studio.
Or Delete it and Download it again.