Hey guys, what’s a good way to configure Atom to treat *.yml.sample files as YAML, and so on? Long term, I’ll probably end up restructuring my filenames to *.sample.yml, but for now it would be helpful to highlight the former as-is.
Here’s a minimal example of your
config.cson that reflects assigns an existing syntax to a custom file-typev. Make sure to insert the
customFileTypes part at the correct indentation, since CSON files are indentation-sensitive.
"*": core: customFileTypes: "source.yaml": [ "*.yaml.sample" ]