MATLAB: New Script keeps opening in new window instead of a tab

live scriptMATLABscript

So, stupid question. I accidentally did something on my script file and now when I hit new script, it opens a new script in a new window instead of a new tab. Can someone tell me what I did and how to reverse it.
Thanks

Best Answer

The only thing I can think of is to go to the small downward-pointing arrowhead in a circle in the upper right of the Editor’s toolstrip (the tooltip for it is ‘Show Editor Actions’, click on it, click on ‘Dock Editor’ and see if that works. According to the menu, CTRL+D might have the same effect.