Main Content

mw.desktop.addressBar.displayedRoots Extension Point

Customize list of displayed roots in address bar

Since R2025a

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:

  1. Create a JSON-formatted file named extensions.json and place it in a folder named resources.

  2. Add a set of JSON declarations to extensions.json that defines one or more displayed roots.

  3. Add the folder containing the resources folder with the extensions.json file to the MATLAB® path. To add the folder to the path, use the addpath function 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

expand all

Required Properties

Displayed root name, specified as a JSON string.

Displayed root icon, specified as a JSON string. Specify icon as the path to a PNG, SVG, or JPG icon. The path must be relative to extensions.json.

Example: "icon": "./myicon.svg"

Displayed root path, specified as a JSON string.

Version History

Introduced in R2025a