mw.fileTypes.labels Extension Point
You can add custom labels for different file types in MATLAB using the
mw.fileTypes.labels extension point.
To add a custom label for a file type in MATLAB®:
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 labels.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.fileTypes.labels
extension point.
{
"mw.fileTypes.labels": {
"xlsx": "Microsoft Excel Worksheet",
"docx": "Microsoft Word Document"
}
}For more information about using extension points, see Extend MATLAB Using Extension Points.
Properties
Version History
Introduced in R2025a