How can I set a preference for the MATLAB Editor/Debugger to open files in separate windows or in tabs in the same window?

31 views (last 30 days)
In MATLAB 6.5, there was a preference setting for tabbed/untabbed behavior in the MATLAB Editor/Debugger. This preference is no longer listed in the "Preferences -> Editor -> Display" options list.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 18 Oct 2013
In MATLAB 7.0 and later versions, this information is an "implicit preference". MATLAB remembers the selection you made in the previous session, and continues that behavior. So, to set an "implicit preference" for separate, undocked windows, take the following steps:
1. Open a file in the Editor/Debugger.
2. Undock the file from the Editor/Debugger using either the undock button in the upper right corner or the "Desktop -> Undock <filename>" item.
3. Close the empty Editor/Debugger that is left behind after undocking the file.
4. Subsequently opened files will appear in individual undocked windows rather than being "tabbed" together. This implicit preference will be remembered across sessions and will remain in effect indefinitely unless you explicitly dock a file back into the Editor/Debugger.
To cause MATLAB to open files and automatically dock them in the Editor/Debugger, dock one file by clicking on the Dock button (an arrow pointing down and to the right) in the upper-right corner of the Editor/Debugger.
The Editor/Debugger also remembers other view settings, including the document arrangement selected from the "Window" menu or from the buttons in the upper-right corner of the Editor/Debugger window.
  2 Comments
Royi Avital
Royi Avital on 16 Jan 2016
How can I restore the undocked editor window defaults (Size and Location)?
I can resize and move it manually but is there a way to reset it like resetting the Main Window default layout?
Thank You.

Sign in to comment.

More Answers (0)

Categories

Find more on Scripts in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!