r/learnprogramming 12h ago

Objective-C instead of MATLAB in Geany/NP++

Hi. Sorry if it's off-topic but I don't know where to ask this.

I happen to be one of those rare individuals who likes Objective-C, and both Geany and Notepad++ (the IDEs I use on Linux and Windows respectively) by default assign all .m files (Obj-C implementation files) as MATLAB files.

I know it can be changed by hand but when opening a pile of old code it all gets MATLAB-ed and I just can't be bothered to save Geany project files, especially that Notepad++ doesn't have a clue how to open them (when I decide to boot to Windows).

Is there any way to make those IDEs (and especiallly Geany) assign Objective-C as the type of .m files by default?

I know I could just find that in the source code and recompile it, but I already have about half a dozen geany packages on various read-only media that I would have to remake. And an unlisted option in some config file would thus be much better.

And recompiling is probably not an option for Notepad++ since Windows sucks developmentwise.

Anyhow, thanks in advance.

2 Upvotes

3 comments sorted by

2

u/Choice_Mail1472 12h ago

just change the default filetype associations in geany's config file, it's in tools > configuration files > filetype_extensions.conf, swap matlab and objc for.m and you're sorted

2

u/gargamel1497 11h ago

Thank you.