ordering open .m files in the windows menu.
Show older comments
While this is somewhat of a nit, when you have multiple .m files open in the editor they are not displayed in alphabetical order in the Window pull down menu.
I have searched and could not find if there is a way to do this.
Is there a way to organize the open .m files in alphabetical order in the Windows pull down menu?
Thanks in advance, Truman Prevatt
Accepted Answer
More Answers (1)
Oleg Komarov
on 5 Aug 2012
Edited: Oleg Komarov
on 5 Aug 2012
1 vote
right click > alphabetize
OR
It can be done using the API editor introduced with R2011a: http://blogs.mathworks.com/community/2011/05/09/r2011a-matlab-editor-api/
However, there's no sort functionality in the API, therefore it should be implemented ad hoc. I am thinking that one way would be to reopen programmatically all the .m files, but this would imply an auto-save and the undo/redo cache will be flushed.
Categories
Find more on File Operations 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!