In VSCode, I would like to force some files to be of a specific type, regardless of their extensions.
I am thinking about a comment to put on top that would say: Hey, I am a plain text (example).
Any idea?
In VSCode, I would like to force some files to be of a specific type, regardless of their extensions.
I am thinking about a comment to put on top that would say: Hey, I am a plain text (example).
Any idea?
In VSCode settings, you can associate the files you want with a specific language:
"settings": {
"files.associations": {
"toto.py": "markdown"
}
}
It is just like adding the plain text on top of each file, you have also a non-automatic action, but it leaves your files cleaner.
[EDIT] Following the comment from @starball, you can find more detailed answers on similar questions here and here for example (the second one might be interesting if you put your copied files in a single place!).