Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Shortcut for open searching panel of editor name?

조회 수: 1 (최근 30일)
Xiaodi
Xiaodi 2019년 11월 10일
마감: MATLAB Answer Bot 2021년 8월 20일
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?
this.png

답변 (2개)

Image Analyst
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
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?
  1. Copy code and save them in the matlab path folder.
  2. Uncomment them.
After that, how could I a shortcut for quick search editor name?
kind regards,
Xiaodi
Image Analyst
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
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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by