I managed to hit some key combination which got my programs into multiple windows within the code space. What do I do to get it back to tabs for the different programs?
Probably File -> Options -> Editor panel, then the General Settings category at the top, Use Tabbed Document Layout towards the bottom of that category. Tick that and OK and you should be back to the tabbed layout.