Editor: Disabling Collapse of Tabs on Double-Click

조회 수: 5 (최근 30일)
Thomas Carpenter
Thomas Carpenter 2021년 8월 16일
댓글: Matthew Smith 2023년 11월 2일
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
Jonathan Hadida
Jonathan Hadida 2023년 4월 16일
편집: Jonathan Hadida 2023년 4월 16일
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 2023년 11월 2일
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.

댓글을 달려면 로그인하십시오.

답변 (1개)

vamshi sai yele
vamshi sai yele 2022년 9월 14일
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
Alain
Alain 2022년 9월 14일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by