How can I do this in MATLAB?

조회 수: 49 (최근 30일)
Deepa Maheshvare
Deepa Maheshvare 2020년 3월 18일
댓글: Deepa Maheshvare 2020년 3월 18일
In pycharm, if I have a bunch of py files and let's say I have opened 1 file that calls a function defined in the other file. Clicking on the function will open the corresponding file in which the function is defined.
I'd like to have a similar interface for .m files.
Any suggestions?

채택된 답변

Steven Lord
Steven Lord 2020년 3월 18일
Put the cursor on the function whose definition you want to open. Right-click and select "Open <name of function>". There's a keyboard shortcut for this, in the Windows default set of keyboard shortcuts it's Ctrl-D, but I'm not sure what it is on the Emacs or Macintosh default sets of keyboard shortcuts. The context menu should list the appropriate shortcut.
If you want to jump to a specific section or subfunction in a file, the Navigate section on the Editor tab in the Toolstrip has tools that will allow you to do this or set bookmarks (so you can easily jump between a local helper function and the place where it is called, to mention one way I've used bookmarks.)
  댓글 수: 1
Deepa Maheshvare
Deepa Maheshvare 2020년 3월 18일
Thanks a lot. I never knew about this!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by