You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
New Script keeps opening in new window instead of a tab
399 views (last 30 days)
Show older comments
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
1 Comment
Sachin Motwani
on 24 Sep 2020
There can't be a simpler description of my problem. Never thought would find it here.
Accepted Answer
Star Strider
on 31 Jul 2014
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.
72 Comments
giovonnie benitez
on 25 Feb 2019
THANK YOUUUUUUUUUUHYKNJKLHKHJNFKKHSDIOHGSFDGHDKJGHDKJGHGHKLJGHDKJGHDGKJ;HRE;GIEHRAGIODRHGH;KARTGH;ETARAJDDJREGA'REJTGRA'K
Adrian Qin Jun Wong
on 14 Aug 2020
it's funny that i replied to a 6 years old comment and the author still reply us
Sachin Motwani
on 24 Sep 2020
For those who are finding it on the main window, the arrow is on the Live script after you create one.
(worst frustrating 10 min of my life)
Antonella Polimeno Camastra
on 13 May 2021
Thank you hero since 2014, from a tired engineer at 1.31 am working on a project.
Monique Kirkman-Bey
on 23 May 2021
Thank goodness for this answer. I was going crazy with the multiple windows! I'm on a mac and it started with the recent update. I assumed it was a pain I'd now have to live with. I'm glad I looked it up because it was getting quite annoying!
Dharsan Ravindran
on 7 Apr 2022
Edited: Dharsan Ravindran
on 7 Apr 2022
8 years later and this is still helping people thanks so much!
Ariana Ray
on 30 Mar 2023
THANK YOU omg haha clearly there has been a design failure since this is affecting so many people, but really appreciate the help
Justin
on 12 Feb 2025
A very quick way to fix this, if docking and moving windows around isn't working well for you is:
1) Click the Home tab
2) Click the down arrow under Layout, under the Environment section
3) Click the Default setting.
This will return all the window to their original position, with the script up top, the Command window at the bottom, Workspace(variables&values) to the right, and current folder to the left.
Also, greetings from February 2025!
Simon
on 26 Feb 2025
I tried to do what you did but the script still doesn't appear on my window. Do I have to reinstall matlab ?
More Answers (3)
Sylvain Cornelus
on 23 Mar 2019
Edited: Sylvain Cornelus
on 23 Mar 2019
Just to add to Star Strider's repsonse:
In case people are having trouble finding it, look for the very top right blue bar, grey circle and down arrow, "Dock filename.m"
CTRL+SHIFT+D was the default command for me in R2018b.
14 Comments
Joseph Ludsfer
on 19 Jun 2020
Edited: Joseph Ludsfer
on 19 Jun 2020
Works for me 2019b update5. Thanks
Avner Atias
on 1 May 2018
The above answers works just fine. Another thing though, if you want the editor to be in a separate window and tab for each function, you can drag it OUT of docking in the MATLAB workspace window.
Justin
on 12 Feb 2025
A very quick way to fix this, if docking and moving windows around isn't working well for you is:
1) Click the Home tab
2) Click the down arrow under Layout, under the Environment section
3) Click the Default setting.
This will return all the window to their original position, with the script up top, the Command window at the bottom, Workspace(variables&values) to the right, and current folder to the left.
See Also
Categories
Find more on Logical in Help Center and File Exchange
Tags
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)