Editor: Disabling Collapse of Tabs on Double-Click

5 views (last 30 days)
When using the docked editor in MATLAB, you can snap different files to different parts of the editor (e.g. have them side by side, above-below and so forth).
The problem is that when you double click on one of the tabs, frequently unintentionally, all of the docked windows collapse into a single view (i.e. they are no longer side by side).
When you are working on multiple files at once and have them neatly arranged, having them all suddenly collapse and loose order is highly frustrating. Is there any way to disable this double-click shortcut?
  5 Comments
Jonathan Hadida
Jonathan Hadida on 16 Apr 2023
Edited: Jonathan Hadida on 16 Apr 2023
It would be great to have an answer to this — the answer below doesn't actually disable the double-click behavior.
Similarly to Adam, I have only ever done this by accident and would like to be able to disable the collapse of tab layout in the editor altogether if possible.
Matthew Smith
Matthew Smith on 2 Nov 2023
I agree that this is a huge irritating problem and creates a lot of work for us. This feature either needs to be removed outright or at least have the option to remove it. When I double click on a file in the file list tab it seems like it should just pop into one of the tabs but instead it ruins your whole layout. Because the actual behavior is so unintuitive it is really hard to learn.

Sign in to comment.

Answers (1)

vamshi sai yele
vamshi sai yele on 14 Sep 2022
Hello,
I understood that you want to retain the tailored view and don not want to miss it as it takes lot of time to set things back into the place.
I can certainly understand how frustrating it is because even I have faced the same issue in the beginning, but thanks to MATLAB, it gave an option to save our tailored view and can get back to it with a single click.
Here are the steps to get that done. Firstly, set up the MATLAB view you wish to have on your screen like placing different MATLAB windows in different positions.
I would like to add a point here to make a customized view in a simple way.
In the "View" panel, there are good number of options to tailor MATLAB view as required.
Without struggling much in dragging things on the screen to set up the position, instead we can try those options like "Custom" windows or "Left/Right" and "Top/Bottom" and "Tab Position" and "SPLIT DOCUMENT" options. Just in case if you want to have all the files in single editor window without any customization, simply click on "Single" option at the left corner.
So, coming to our original discussion of having the customized view handy, once you tailor the view as per your requirements, got to "Home" and click on "Layout" to see the available options. Among them select the "Save Layout" and give a name to the layout. Now everything is set to go.
From now on, to get back to your favourite view, just click on the laylout option and select the saved one and MATLAB will fall into your favourite customized view.
Hope you will find it helpful!
  1 Comment
Alain
Alain on 14 Sep 2022
Thanks. I just tried your suggestion but I am afraid that the positions of the docked windows inside the editor are not included in the saved layouts. Just tried it. Saved my layout as per your suggestion, double-clicked one tab in the editor (all docked tabs got undocked as sadly expected). Reloading my saved layout did unfortunatelly not restore the original tabs location inside the editor...
Being able to save the layout of the tabs in the editor would be a cool feature... But simply being able to diasable the double-click event on the editor tabs would be a good-enough start for me.

Sign in to comment.

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!