@Holger, yes it looks like the fix is in place in the Github repo, but was not released. I imagine the fix will be added to the next standalone release. In the meantime, if you wanted to add the fix to your own copy, so your code type prefs are saved each time you close the code box, you can add the following file to your psychopy installation. On Windows, go to your standalone PsychoPy path and navigate to the code component dialog code, something like
C:\Program Files\PsychoPy3\Lib\site-packages\psychopy\app\builder\dialogs\
Add the following file to the directory, overwriting the existing file, and when you start PsychoPy the code type should be saved each time you close your code dialogs.
dlgsCode.py (24.7 KB)