Override default extension


#1

I have a code base of c++ files that all use a .c extension. I have the language-c package installed, enabled and I set up my config.cson with the following:

core:
customFileType:
“source.cpp”: [
“c”
]

When I open a .c file, it still is detected as a c file and not a cpp file. What have I missed?


#2

To make sure that your CSON is right, it might be best to provide us with a screenshot of your whole config file (excluding any API keys).


#3


#4

The only issue is that you wrote customFileType instead of customFileTypes.


#5

Thank you ~~ As I dope slap my forehead with palm~~