Atom: MATLAB icon is not visible

Created on 12 Dec 2017  路  4Comments  路  Source: file-icons/atom

Hello,

I've seen there is an SVG for MATLAB, but on my Atom my .m files are assigned the (default?) "@{" icon.

question

Most helpful comment

馃憢 Hey mate,

The .m extension is used by both MATLAB and Objective-C. The @{ icon you're seeing is the icon used for Objective-C files. If you prefer .m files be used for MATLAB instead, you can register it as a custom filetype. Just add the following to your config.cson file:

~cson
"*":
core:
customFileTypes:
"source.matlab": [
"m"
]
~

All 4 comments

馃憢 Hey mate,

The .m extension is used by both MATLAB and Objective-C. The @{ icon you're seeing is the icon used for Objective-C files. If you prefer .m files be used for MATLAB instead, you can register it as a custom filetype. Just add the following to your config.cson file:

~cson
"*":
core:
customFileTypes:
"source.matlab": [
"m"
]
~

Worked like a charm. Cheers!

Good to hear! =)

Note for myself:

If you get indentation errors, just put everything in one line

customFileTypes: "source.matlab": ["m"]
Was this page helpful?
0 / 5 - 0 ratings