In my case, I wasn't looking for a default file formatter, but rather applying an existing file format to a custom file. E.g. say you have a custom file file.framework but you have developed this framework file to follow a YAML standard. Initially VS Code won't render it properly, it'll just treat it as text, but you can select the language format.
Plain Text optionConfigure File Association