Hi @Andrin,
The EditPythonScript command doesn’t have an option for doing this. But it seems like a reasonable request.
https://mcneel.myjetbrains.com/youtrack/issue/RH-69369
Note, the editor is being overhauled for Rhino 8. So if this issue is worked on, this is where you’d see it.
Thanks,
– Dale