vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Changing files.associations setting has no effect

Open iissmart opened this issue 10 years ago • 4 comments

  • VSCode Version: 1.1.0
  • OS Version: Win7 SP1

Steps to Reproduce:

  1. Add an entry to files.associations in the user's settings.json file, for example:
"files.associations": {
    "*.bat": "Python"
}
  1. Close and re-open VSCode
  2. Open a .bat file
  3. Observe that the detected language (bottom right) is Batch, not Python

iissmart avatar May 16 '16 16:05 iissmart

Try:

"files.associations": {
    "*.bat": "python"
}

bpasero avatar May 17 '16 05:05 bpasero

VSCode 1.4.0 in Fedora 24. Please reopen the issue?

"files.associations": {
    "*.xml": "lua"
}

Language is still set to XML instead of Lua after restarting VSCode and re-opening file. Rename attached file to test.xml instead of test.txt. test.txt

fiendish avatar Aug 05 '16 10:08 fiendish

That I cannot reproduce:

editors

bpasero avatar Aug 08 '16 07:08 bpasero

@fiendish

Just jumping in to say I had this issue as well, and mine turned out to be a local settings file in a project-level .vscode directory that was overriding my user-specific settings. Hope that helps!

jonlong avatar Oct 03 '16 15:10 jonlong