0

I am trying to get my vscode workspace to expect all files without an extension to be js files.

I wrote this regex to select files without a ., but I can't get it to work. You can use regex here, right? I couldn't find this in the docs, so I am guessing.

{
    "files.associations": {
        "^([^.]+)$": "javascript"
    }
}
Mark
  • 143,421
  • 24
  • 428
  • 436
Mats
  • 223
  • 1
  • 5
  • 15
  • 1
    It does not look like you can use regex here, it looks like the [app expects a glob](https://code.visualstudio.com/docs/languages/overview#_adding-a-file-extension-to-a-language) here. – Wiktor Stribiżew Nov 26 '20 at 13:29
  • The duplicate question has a good answer for you. – Mark Nov 28 '20 at 22:16

0 Answers0