New Script keeps opening in new window instead of a tab
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
More Answers (4)
Sylvain Cornelus
on 23 Mar 2019
Edited: Sylvain Cornelus
on 23 Mar 2019
85 votes
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
Tomás Undurraga
on 26 May 2019
Thanks a lot!!
Slimane Ouakka
on 23 Apr 2020
I confirm this is working also with R2019, Thank you!
Michael Magid
on 1 May 2020
Confirm this works in 2020a, Thank you!
Alfonso Pineda Parra
on 7 Jun 2020
Thanks, it works for me
Joseph Ludsfer
on 19 Jun 2020
Edited: Joseph Ludsfer
on 19 Jun 2020
Works for me 2019b update5. Thanks
Sachin Motwani
on 24 Sep 2020
@Michael Magid: I almost lost hope. You kept me binding.
Nathan Veuthey
on 28 Oct 2021
<3
MIT PIYUSH BAKHAI
on 18 Apr 2023
works like a charm, share love, cheers
Himanshu Gupta
on 9 May 2023
Edited: Himanshu Gupta
on 9 May 2023
CTRL+SHIFT+D Perfect (R2021b)
Mahmudul
on 17 Jun 2023
CTRL+SHIFT+D Perfect (R2022b)
Adrian
on 28 Nov 2023
Thanks!!!
Abdelaziz Bounhar
on 30 Jan 2024
thanks!
ASHUTOSH
on 22 Dec 2024
thanks!!
Jonathan
on 6 Mar 2025
cmd + ctrl + D for mac
Avner Atias
on 1 May 2018
5 votes
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
1 vote
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.
ctrl+shift+D
choose dock editor, thanks.
1 Comment
Marisa
on 22 Mar 2026 at 17:18
this worked, tysm
Categories
Find more on Graphics Objects 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!