mw.fileTypes.icons Extension Point
You can add custom icons for different file types in MATLAB® using the mw.fileTypes.icons
extension
point.
To add a custom icon for a file type in MATLAB:
Create a JSON-formatted file named
extensions.json
and place it in a folder namedresources
.Add a set of JSON declarations to
extensions.json
that defines one or more icons.Add the folder containing the
resources
folder with theextensions.json
file to the MATLAB path. To add the folder to the path, use theaddpath
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.fileTypes.icons
extension point.
{ "mw.fileTypes.icons": { "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