Info
此问题已关闭。 请重新打开它进行编辑或回答。
Shortcut for open searching panel of editor name?
1 次查看(过去 30 天)
显示 更早的评论
Hi, I want to ask, if there is shortcut for the bottom in following picture, the I could find the wanted editor name? If there is not, could I set a costumer shortcut for this?
0 个评论
回答(2 个)
Image Analyst
2019-11-10
Yes there is. There is some api call to get the names of the editor tabs. I don't have it on this computer but I'll see if I can get it when I get to my other computer. I got the code from Yair Altman.
4 个评论
Xiaodi Jin
2019-11-14
Hi thanks for your answer.
I'm a littel confused about the attached code. What should exactly do with that?
- Copy code and save them in the matlab path folder.
- Uncomment them.
After that, how could I a shortcut for quick search editor name?
kind regards,
Xiaodi
Image Analyst
2019-11-15
I don't know. You're on your own (unless you want to contact Yair). I don't even know exactly what you want.
Walter Roberson
2019-11-15
I am not clear as to what you want, but it might possibly help to know that
editors = matlab.desktop.editor.getAll;
This is an array of Document . Each one has a property named Filename that can be examined to determine whether it is the desired session. Once you have determined the proper index, you can use the makeActive method on it, such as
editors(2).makeActive
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!