How to show file name instead of full file path in matlab's code editor bar

Hi,
Usually the m code editor bar shows the full path to m file.
Occasionally I found that when I open the code editor and variable window and annex these two windows in the ceter of matlab window, the full path changed to file name only.
Is there a way to make the code editor bar always the file name only, instead of file path?
I found one setting in matlab.prf:
EditorNamedBufferOption=I2.
Does this setting control this behaviour? How to edit this setting?
Thanks.

4 Comments

Yesh the current display is pretty useless when you have multiple files open, i think a better way to show details would be to have it show as FileName | fullPath
There must be a solution in mathwork, because when I put editor window and variable inspection window together above the command window in a Left-Right spit pattern, I noticed that the path was omitted, and only the file name remains. The difficult part is to know which interbal command was executed for this switch.
At this related question: How do I show only the filename at the top of my editor instead of the full path?, a MathWorks employee says, "There is currently no way to set a preference for what the Editor window displays."
In the Matlab Documentation under “Editor/Debugger Preferences” there is this entry:
Select Display full path of files in the Editor to display the full path of files open in the MATLAB Online Editor and Live Editor. The path displays at the top of each open file.
This option does not appear in Matlab release 2024B. Is this an error in the documentation or a bug in Matlab R2024B?

Sign in to comment.

Answers (0)

Categories

Find more on Environment and Settings in Help Center and File Exchange

Asked:

on 8 Oct 2020

Commented:

on 25 Feb 2025

Community Treasure Hunt

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

Start Hunting!