mw.fileTypes.groups Extension Point
You can create groups of file types in MATLAB® using the mw.fileTypes.groups extension point. Creating
groups allows you to customize multiple file types at the same time.
To create and use a group of file types 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 groups.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.groups
extension point and how to use it.
{
"mw.fileTypes.groups": {
"images": [
"jpg",
"jpeg",
"tif",
"tiff",
"png"
],
"matlabCodeFiles": [
"m",
"mlx"
]
},
"mw.fileTypes.icons": [
{
"groups.images": "./imageIcon.svg",
"groups.matlabCodeFiles": "./codeFileIcon.svg",
"xlsx": "./excelWorksheetIcon.svg",
"docx": "./wordDocIcon.svg"
}
]
}For more information about using extension points, see Extend MATLAB Using Extension Points.
Properties
Version History
Introduced in R2025a