mw.desktop.addressBar.displayedRoots Extension Point
You can customize the list of displayed roots in the address bar using the
mw.desktop.addressBar.displayedRoots extension point.
To customize the list of displayed roots in the address bar:
Create a JSON-formatted file named
extensions.jsonand place it in a folder namedresources.Add a set of JSON declarations to
extensions.jsonthat defines one or more displayed roots.Add the folder containing the
resourcesfolder with theextensions.jsonfile to the MATLAB® path. To add the folder to the path, use theaddpathfunction or right-click the folder in the Files panel and select Add to Path > Selected Folders and Subfolders.
This JSON code shows the basic structure of the
mw.desktop.addressBar.displayedRoots extension point.
{
"mw.desktop.addressBar.displayedRoots": [
{
"label": "SandboxRoot",
"icon": "./sandbox.png",
"path": "/path/to/sandbox"
},
{
"label": "MATLAB Drive",
"icon": "./cloudFolder.svg",
"path": "/path/to/MATLABDrive"
},
{
"label": "MATLAB Add-Ons",
"icon": "./addOns.jpg",
"path": "/path/to/MATLABAddOns"
}
]
}For more information about using extension points, see Extend MATLAB Using Extension Points
Properties
Version History
Introduced in R2025a